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

    Function sign

    • Sign a message using the BIP-322 simple signature scheme.

      Constructs the standard BIP-322 toSpend and toSign transactions, signs via the Identity interface, and returns the base64-encoded witness stack.

      Parameters

      • message: string

        The message to sign

      • identity: Identity

        Identity instance (holds the private key internally)

      • Optionalnetwork: BTC_NETWORK

        Optional Bitcoin network for P2TR address derivation

      Returns Promise<string>

      Base64-encoded BIP-322 simple signature (witness stack)