Function decodeBitcoinSignature

  • Split a bitcoin-encoded signature into a signature and signing serialization type.

    While a bitcoin-encoded signature only includes a single byte to encode the signing serialization type, a 3-byte forkId can be appended to the signing serialization to provide replay-protection between different forks. (See Bitcoin Cash's Replay Protected Sighash spec for details.)

    Parameters

    Returns {
        signature: Uint8Array;
        signingSerializationType: Uint8Array;
    }

    • signature: Uint8Array
    • signingSerializationType: Uint8Array

Generated using TypeDoc