MCPcopy Create free account
hub / github.com/ElementsProject/elements / CheckLowS

Method CheckLowS

src/pubkey.cpp:399–406  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

397}
398
399/* static */ bool CPubKey::CheckLowS(const std::vector<unsigned char>& vchSig) {
400 secp256k1_ecdsa_signature sig;
401 assert(secp256k1_context_verify && "secp256k1_context_verify must be initialized to use CPubKey.");
402 if (!ecdsa_signature_parse_der_lax(secp256k1_context_verify, &sig, vchSig.data(), vchSig.size())) {
403 return false;
404 }
405 return (!secp256k1_ecdsa_signature_normalize(secp256k1_context_verify, nullptr, &sig));
406}
407
408/* static */ int ECCVerifyHandle::refcount = 0;
409

Callers

nothing calls this directly

Calls 4

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected