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

Method VerifyHash

types/response_type.go:111–118  ·  view source on GitHub ↗

VerifyHash verify the hash of the response.

()

Source from the content-addressed store, hash-verified

109
110// VerifyHash verify the hash of the response.
111func (r *Response) VerifyHash() (err error) {
112 if err = verifyHash(&r.Payload, &r.Header.PayloadHash); err != nil {
113 err = errors.Wrap(err, "verify response payload hash failed")
114 return
115 }
116
117 return r.Header.VerifyHash()
118}
119
120// Hash returns the response header hash.
121func (r *Response) Hash() hash.Hash {

Callers 2

TestResponse_SignFunction · 0.95
BenchmarkSignSignatureFunction · 0.95

Calls 2

verifyHashFunction · 0.85
VerifyHashMethod · 0.65

Tested by 2

TestResponse_SignFunction · 0.76
BenchmarkSignSignatureFunction · 0.76