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

fromRootSecret()

static fromRootSecret(rootSecret): Promise<LocalSigner>

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

Parameters

rootSecret

Uint8Array

Returns

Promise<LocalSigner>


fromMnemonic()

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

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

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:33

Returns

Promise<[bigint, bigint]>

Implementation of

SpendSigner.getSpendingPublicKey


signBatch()

signBatch(requests): Promise<EddsaSignature[]>

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

Parameters

requests

readonly SpendSignRequest[]

Returns

Promise<EddsaSignature[]>

Implementation of

SpendSigner.signBatch


dispose()

dispose(): void

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

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

Returns

void

Implementation of

SpendSigner.dispose