secp256k1_ecdsa_signature_parse_der

Parse a DER ECDSA signature.

extern (C)
int
secp256k1_ecdsa_signature_parse_der

Return Value

Type: int

1 when the signature could be parsed, 0 otherwise. Args: ctx: a secp256k1 context object Out: sig: a pointer to a signature object In: input: a pointer to the signature to be parsed inputlen: the length of the array pointed to be input

This function will accept any valid DER encoded signature, even if the encoded numbers are out of range.

After the call, sig will always be initialized. If parsing failed or the encoded numbers are out of range, signature validation with it is guaranteed to fail for every message and public key.

Meta