Skip to content

@armada/sdk / index / LocalSigner

Class: LocalSigner ​

Defined in: src/wallet/local-signer.ts:14

In-process signer derived from the wallet's rootSecret. It receives the entire batch of fully-bound intents and signs each message (the pinned poseidon digest). This is everything the repo does today; ExternalSigner/ThresholdSigner are drop-in swaps behind the same interface.

Implements ​

Methods ​

fromKeyset() ​

static fromKeyset(keyset): LocalSigner

Defined in: src/wallet/local-signer.ts:26

A signer over an already-derived keyset's spend key. It takes the keyset's spendingPrivateKey buffer as its own (no copy), so dispose() zeroes the only copy of the key — the wallet doesn't keep one.

Parameters ​

keyset ​

Keyset

Returns ​

LocalSigner


fromRootSecret() ​

static fromRootSecret(rootSecret): Promise<LocalSigner>

Defined in: src/wallet/local-signer.ts:30

Parameters ​

rootSecret ​

Uint8Array

Returns ​

Promise<LocalSigner>


fromMnemonic() ​

static fromMnemonic(mnemonic, derivationIndex?): Promise<LocalSigner>

Defined in: src/wallet/local-signer.ts:36

Signer for a BIP-39 mnemonic-provisioned wallet (the relayer's) at derivationIndex.

Parameters ​

mnemonic ​

string

derivationIndex? ​

number = 0

Returns ​

Promise<LocalSigner>


getSpendingPublicKey() ​

getSpendingPublicKey(): Promise<[bigint, bigint]>

Defined in: src/wallet/local-signer.ts:41

Returns ​

Promise<[bigint, bigint]>

Implementation of ​

SpendSigner.getSpendingPublicKey


signBatch() ​

signBatch(requests, options?): Promise<EddsaSignature[]>

Defined in: src/wallet/local-signer.ts:46

Parameters ​

requests ​

readonly SpendSignRequest[]

options? ​

SpendSignOptions

Returns ​

Promise<EddsaSignature[]>

Implementation of ​

SpendSigner.signBatch


dispose() ​

dispose(): void

Defined in: src/wallet/local-signer.ts:56

Zeroize the spending private key (SPEC §4.2 zeroization) — the signer refuses to sign afterward.

Returns ​

void

Implementation of ​

SpendSigner.dispose