15 unsigned char tmpsig[64] = {0};
22 if (pos ==
inputlen || input[pos] != 0x30) {
41 if (pos ==
inputlen || input[pos] != 0x02) {
56 while (
lenbyte > 0 && input[pos] == 0) {
60 if (
lenbyte >=
sizeof(
size_t)) {
79 if (pos ==
inputlen || input[pos] != 0x02) {
94 while (
lenbyte > 0 && input[pos] == 0) {
98 if (
lenbyte >=
sizeof(
size_t)) {
116 while (
rlen > 0 && input[
rpos] == 0) {
128 while (
slen > 0 && input[
spos] == 0) {
int ecdsa_signature_parse_der_lax(const secp256k1_context *ctx, secp256k1_ecdsa_signature *sig, const unsigned char *input, size_t inputlen)
Parse a signature in "lax DER" format.
SECP256K1_API int secp256k1_ecdsa_signature_parse_compact(const secp256k1_context *ctx, secp256k1_ecdsa_signature *sig, const unsigned char *input64) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
Parse an ECDSA signature in compact (64 bytes) format.
Opaque data structure that holds a parsed ECDSA signature.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.