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

Function ParseDERSignature

crypto/asymmetric/signature.go:64–67  ·  view source on GitHub ↗

ParseDERSignature recovers the signature from a sigStr.

(sigStr []byte, curve elliptic.Curve)

Source from the content-addressed store, hash-verified

62
63// ParseDERSignature recovers the signature from a sigStr.
64func ParseDERSignature(sigStr []byte, curve elliptic.Curve) (*Signature, error) {
65 sig, err := ec.ParseDERSignature(sigStr, curve)
66 return (*Signature)(sig), err
67}
68
69// IsEqual return true if two signature is equal.
70func (s *Signature) IsEqual(signature *Signature) bool {

Callers 2

ParseSignatureFunction · 0.85
TestSignFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestSignFunction · 0.68