Skip to content
docs

ExternalSignerOptions

Defined in: signer.ts:309

Options for externalSigner: the key’s curve and public key, and the function that asks your backend, device or user for a signature.

curve: SignerCurve

Defined in: signer.ts:311

Curve of the key.


optional dispose?: () => void

Defined in: signer.ts:319

Called once by the signer’s dispose().

void


publicKey: Uint8Array

Defined in: signer.ts:313

The key’s public key (33-byte compressed secp256k1 or 32-byte ed25519).


optional schemes?: readonly SignScheme[]

Defined in: signer.ts:315

Schemes the backend can produce. Defaults to the curve’s default scheme only.


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

Defined in: signer.ts:317

Called with the resolved scheme (never undefined). Throw UserRejectedError when the user declines.

Uint8Array

SignOptions & object

Promise<Uint8Array<ArrayBufferLike>>