MCPcopy
hub / github.com/canopy-network/canopy / Hash

Method Hash

lib/certificate.go:401–406  ·  view source on GitHub ↗

Hash() returns the cryptographic hash of the canonical Sign Bytes of the CertificateResult

()

Source from the content-addressed store, hash-verified

399
400// Hash() returns the cryptographic hash of the canonical Sign Bytes of the CertificateResult
401func (x *CertificateResult) Hash() []byte {
402 // convert the certificate results to proto bytes
403 bz, _ := Marshal(x)
404 // return the hash of the bytes
405 return crypto.Hash(bz)
406}
407
408// REWARD RECIPIENT CODE BELOW
409

Callers 8

TestCertificateSignBytesFunction · 0.95
TestCheckpointHashFunction · 0.95
TestSignBytesFunction · 0.95
CheckProposalBasicMethod · 0.45

Calls 2

HashFunction · 0.92
MarshalFunction · 0.70

Tested by 7

TestCertificateSignBytesFunction · 0.76
TestCheckpointHashFunction · 0.76
TestSignBytesFunction · 0.76