Function isCanonicalScriptSignature

  • Checks if the provided buffer is a canonical script signature.

    A canonical script signature is a valid DER-encoded signature followed by a valid hash type byte.

    Parameters

    • buffer: Uint8Array

      The buffer to check.

    Returns boolean

    true if the buffer is a canonical script signature, false otherwise.