Skip to content

WrappedHdExtendedPrivateKey

WrappedHdExtendedPrivateKey = object

Defined in: packages/crypto/src/hd.ts:59

Represents a 96-byte scalar (aka LHS or zL) || prefix (aka RHS or zR) || chain_code secret that can be unwrapped for short-lived use and then re-wrapped.

It should be noted that the chain_code is NOT used for signing. It can, however, be used for key derivation. If your secret is only used for signing, it is recommended to only store the first 64 bytes in the secret store and then pad the secret to 96 bytes in the unwrap function

unwrapHdExtendedPrivateKey: () => Promise<Uint8Array>

Defined in: packages/crypto/src/hd.ts:63

Unwraps and returns the 96-byte HD scalar (aka LHS or zL) || prefix (aka RHS or zR) || chain_code.

Promise<Uint8Array>


wrapHdExtendedPrivateKey: () => Promise<void>

Defined in: packages/crypto/src/hd.ts:67

Re-wraps the scalar (aka LHS or zL) || prefix (aka RHS or zR) || chain_code after use.

Promise<void>