@arkade-os/sdk Documentation - v0.4.21
    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.

    Prefer this (or

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

    For descriptor-based signing, wrap with StaticDescriptorProvider.

    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

    • Sign an arbitrary message using the requested signature type.

      Parameters

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

      Returns Promise<Uint8Array<ArrayBufferLike>>