MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / AddressHash

Function AddressHash

crypto/crypto.go:18–20  ·  view source on GitHub ↗
(bz []byte)

Source from the content-addressed store, hash-verified

16type Address = bytes.HexBytes
17
18func AddressHash(bz []byte) Address {
19 return Address(tmhash.SumTruncated(bz))
20}
21
22type PubKey interface {
23 Address() Address

Callers 8

TestMaxCommitBytesFunction · 0.92
TestHeaderHashFunction · 0.92
TestMaxHeaderBytesFunction · 0.92
exampleVoteFunction · 0.92
exampleVoteFunction · 0.92
TestEvidenceVectorsFunction · 0.92

Calls 1

SumTruncatedFunction · 0.92

Tested by 8

TestMaxCommitBytesFunction · 0.74
TestHeaderHashFunction · 0.74
TestMaxHeaderBytesFunction · 0.74
exampleVoteFunction · 0.74
exampleVoteFunction · 0.74
TestEvidenceVectorsFunction · 0.74