@arkade-os/sdk Documentation - v0.4.54
    Preparing search index...

    Function arkadeWitnessHash

    • Compute the tagged hash of an Arkade witness. Uses BIP-340 tagged hash: SHA256(SHA256(tag) || SHA256(tag) || witness)

      Parameters

      • witness: Uint8Array

        The raw Arkade witness bytes

      Returns Uint8Array

      32-byte hash, or 32 zero bytes if witness is empty