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

    Function computeArkadeScriptPublicKey

    • Compute the Arkade script tweaked public key. result = pubKey + taggedHash("ArkScriptHash", script) * G

      The input pubKey should be a compressed (33-byte) or x-only (32-byte) public key. Returns a 32-byte x-only public key.

      Parameters

      • pubKey: Uint8Array

        The emulator's base public key (32 or 33 bytes)

      • script: Uint8Array

        The raw Arkade script bytes

      Returns Uint8Array

      32-byte x-only tweaked public key