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

Method UnmarshalBinary

crypto/asymmetric/signature.go:148–161  ·  view source on GitHub ↗

UnmarshalBinary does the deserialization.

(keyBytes []byte)

Source from the content-addressed store, hash-verified

146
147// UnmarshalBinary does the deserialization.
148func (s *Signature) UnmarshalBinary(keyBytes []byte) (err error) {
149 if s == nil {
150 err = errors.New("nil signature")
151 return
152 }
153
154 var sig *Signature
155 sig, err = ParseSignature(keyBytes)
156 if err != nil {
157 return
158 }
159 *s = *sig
160 return
161}
162
163func zeroBytes(bytes []byte) {
164 for i := range bytes {

Callers 1

Calls 2

ParseSignatureFunction · 0.85
NewMethod · 0.65

Tested by 1