@arkade-os/sdk Documentation - v0.5.0-rc.11
    Preparing search index...

    Function buildPreimageMessage

    • TAG ‖ xonly(32) ‖ u32le(index) — the message that gets BIP-340 signed.

      Anchored on the canonical x-only key rather than the descriptor string: a restore reconstructs a bare descriptor that serialises differently from the signing descriptor used at creation, and only the key agrees across both.

      Parameters

      • xonly: Uint8Array
      • index: number

      Returns Uint8Array