MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / checkSignature

Function checkSignature

crypto/secp256k1/secp256.go:167–175  ·  view source on GitHub ↗
(sig []byte)

Source from the content-addressed store, hash-verified

165}
166
167func checkSignature(sig []byte) error {
168 if len(sig) != 65 {
169 return ErrInvalidSignatureLen
170 }
171 if sig[64] >= 4 {
172 return ErrInvalidRecoveryID
173 }
174 return nil
175}

Callers 1

RecoverPubkeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected