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

Function TupleHashXOF128

crypto/sha3/tuple_hash.go:56–60  ·  view source on GitHub ↗

TupleHashXOF128 provides an arbitrary-length output.

(tuple [][]byte, s []byte)

Source from the content-addressed store, hash-verified

54
55// TupleHashXOF128 provides an arbitrary-length output.
56func TupleHashXOF128(tuple [][]byte, s []byte) io.Reader {
57 shake := newTupleHash(128, tuple, s)
58 rightEncode(shake, 0)
59 return shake
60}
61
62// TupleHashXOF256 provides an arbitrary-length output.
63func TupleHashXOF256(tuple [][]byte, s []byte) io.Reader {

Callers 3

Calls 2

newTupleHashFunction · 0.85
rightEncodeFunction · 0.85

Tested by 3