Function isValidSignatureEncodingDER

  • Validate a DER-encoded signature.

    Parameters

    • signature: Uint8Array

    Returns boolean

    Remarks

    This function is consensus-critical since BIP66, but differs from the BIP66 specification in that it does not validate the existence of a signing serialization type byte at the end of the signature (to support OP_CHECKDATASIG). To validate a bitcoin-encoded signature (including null signatures), use isValidSignatureEncodingBCHTransaction.

Generated using TypeDoc