Skip to content

@lelantos-org/sdk / index / ConnectKeyOptions

Type Alias: ConnectKeyOptions โ€‹

ts
type ConnectKeyOptions = 
  | Only<{
  account?: number;
  mnemonic: string;
  passphrase?: string;
}, KeyOptionKeys>
  | Only<{
  signature: string;
}, KeyOptionKeys>
  | Only<{
  nsk: bigint;
}, KeyOptionKeys>;

Defined in: @lelantos-org/sdk/dist/wallet/connect/options.d.ts:36

How the shielded spending key is derived โ€” pick at most one shape.

  • mnemonic โ€” BIP-39 phrase, ZIP-32 derived. The portable option.
  • signature โ€” hex of the canonical EIP-712 message, for wallet-derived keys where the user already signed (see keys/metamask.ts).
  • nsk โ€” pre-derived nullifier spending key; derivation is the caller's.

Omitting all three is valid when the chain layer can derive one โ€” see SelfKeyingChainOptions.

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub