MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / ParseSignature

Function ParseSignature

crypto/asymmetric/signature.go:59–61  ·  view source on GitHub ↗

ParseSignature recovers the signature from a sigStr using koblitz curve.

(sigStr []byte)

Source from the content-addressed store, hash-verified

57
58// ParseSignature recovers the signature from a sigStr using koblitz curve.
59func ParseSignature(sigStr []byte) (*Signature, error) {
60 return ParseDERSignature(sigStr, ec.S256())
61}
62
63// ParseDERSignature recovers the signature from a sigStr.
64func ParseDERSignature(sigStr []byte, curve elliptic.Curve) (*Signature, error) {

Callers 2

UnmarshalBinaryMethod · 0.85
BenchmarkParseSignatureFunction · 0.85

Calls 1

ParseDERSignatureFunction · 0.85

Tested by 1

BenchmarkParseSignatureFunction · 0.68