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

    Function buildSaltedPreimageMessage

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

      The salt replaces v1's pinned index as the source of per-artifact uniqueness, which is what lets a key that repeats across artifacts still derive a distinct preimage for each. It is public: knowing it yields nothing without the seed.

      Parameters

      • xonly: Uint8Array
      • salt: Uint8Array

      Returns Uint8Array