MCPcopy Create free account
hub / github.com/chain/txvm / newTupleHash

Function newTupleHash

crypto/sha3/tuple_hash.go:146–152  ·  view source on GitHub ↗
(securitybits int, tuple [][]byte, s []byte)

Source from the content-addressed store, hash-verified

144}
145
146func newTupleHash(securitybits int, tuple [][]byte, s []byte) (d *state) {
147 d = newCShake(securitybits, []byte("TupleHash"), s)
148 for _, item := range tuple {
149 encodeString(d, item)
150 }
151 return d
152}
153
154func newTupleHasher(securitybits int, length int, s []byte) *thash {
155 t := thash{d: newCShake(securitybits, []byte("TupleHash"), s)}

Callers 4

TupleHash128Function · 0.85
TupleHash256Function · 0.85
TupleHashXOF128Function · 0.85
TupleHashXOF256Function · 0.85

Calls 2

newCShakeFunction · 0.85
encodeStringFunction · 0.85

Tested by

no test coverage detected