@arkade-os/sdk Documentation - v0.4.0-next.8
    Preparing search index...

    Class SeedIdentity

    Seed-based identity derived from a raw seed and an output descriptor.

    This is the recommended identity type for most applications. It uses standard BIP86 (Taproot) derivation by default and stores an output descriptor for interoperability with other wallets. The descriptor format is HD-ready, allowing future support for multiple addresses and change derivation.

    Prefer this (or MnemonicIdentity) over SingleKey for new integrations — SingleKey exists for backward compatibility with raw nsec-style keys.

    const seed = mnemonicToSeedSync(mnemonic);

    // Testnet (BIP86 path m/86'/1'/0'/0/0)
    const identity = SeedIdentity.fromSeed(seed, { isMainnet: false });

    // Mainnet (BIP86 path m/86'/0'/0'/0/0)
    const identity = SeedIdentity.fromSeed(seed, { isMainnet: true });

    // Custom descriptor
    const identity = SeedIdentity.fromSeed(seed, { descriptor });

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    descriptor: string

    Methods

    • Parameters

      • message: Uint8Array
      • signatureType: "schnorr" | "ecdsa" = "schnorr"

      Returns Promise<Uint8Array<ArrayBufferLike>>