Skip to content
docs

LocalSigner

Defined in: signer.ts:184

Local key signer: the key lives in one Uint8Array, zeroized by dispose(). Built from a seed (derivable), from a seed as a leaf (leafFromSeed: no seed kept), or from a raw derived key (leaf only).

readonly curve: SignerCurve

Defined in: signer.ts:187

Curve of the key.

SeedSigner.curve


readonly kind: "seed"

Defined in: signer.ts:185

Where the key lives: derived from a seed, one imported key, or outside the SDK.

SeedSigner.kind


readonly path: string

Defined in: signer.ts:189

Derivation path of this key.

SeedSigner.path


readonly publicKey: Uint8Array

Defined in: signer.ts:191

Public key, available without a call.


readonly schemes: readonly SignScheme[]

Defined in: signer.ts:193

Every scheme a local key on this curve can produce.

SeedSigner.schemes

derive(relativePath): Promise<LocalSigner>

Defined in: signer.ts:281

A child signer at path/relativePath that keeps a seed copy and can derive further.

string

Promise<LocalSigner>

SignerError when this signer has no seed (built with fromPrivateKey or leafFromSeed) or was disposed.

SeedSigner.derive


deriveLeaf(relativePath): Promise<LocalSigner>

Defined in: signer.ts:289

Like derive, but the child keeps only its own key (no seed copy) and cannot derive further. What managers use for accounts.

string

Promise<LocalSigner>

SeedSigner.deriveLeaf


dispose(): void

Defined in: signer.ts:298

Zeroize the private key and any seed copy. Idempotent; signing afterwards throws.

void

SeedSigner.dispose


getPublicKey(): Promise<Uint8Array<ArrayBufferLike>>

Defined in: signer.ts:230

The public key; same as LocalSigner.publicKey.

Promise<Uint8Array<ArrayBufferLike>>

SeedSigner.getPublicKey


sign(payload, options?): Promise<Uint8Array<ArrayBufferLike>>

Defined in: signer.ts:241

Sign payload with the requested scheme (the curve’s default when omitted).

Uint8Array

SignOptions = {}

Promise<Uint8Array<ArrayBufferLike>>

SignerError after dispose(), for a scheme this curve cannot produce, a payload of the wrong length, or a tweak outside schnorr.

SeedSigner.sign


toJSON(): object

Defined in: signer.ts:225

Public view only, for logs and serializers.

object

curve: SignerCurve

kind: "seed"

path: string

publicKey: string


static fromPrivateKey(curve, privateKey, publicKey, path): LocalSigner

Defined in: signer.ts:220

Wrap an already-derived key. Cannot derive children. Takes ownership of privateKey (zeroized on dispose).

SignerCurve

Uint8Array

Uint8Array

string

LocalSigner


static fromSeed(seed, curve, path): LocalSigner

Defined in: signer.ts:204

Derive the key at path from the 64-byte BIP-39 seed. Keeps a COPY of the seed so it can derive children.

Uint8Array

SignerCurve

string

LocalSigner


static leafFromSeed(seed, curve, path): LocalSigner

Defined in: signer.ts:214

Derive the key at path from the seed and keep ONLY that key: the signer cannot derive children and holds no copy of the seed. What chain managers hand to accounts, so an account never carries the master seed.

Uint8Array

SignerCurve

string

LocalSigner