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

Function TupleHashXOF256

crypto/sha3/tuple_hash.go:63–67  ·  view source on GitHub ↗

TupleHashXOF256 provides an arbitrary-length output.

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

Source from the content-addressed store, hash-verified

61
62// TupleHashXOF256 provides an arbitrary-length output.
63func TupleHashXOF256(tuple [][]byte, s []byte) io.Reader {
64 shake := newTupleHash(256, tuple, s)
65 rightEncode(shake, 0)
66 return shake
67}
68
69// NewTupleHash128 creates an instance of Hash with a given key,
70// output length in bytes and a customization string s.

Callers 3

Calls 2

newTupleHashFunction · 0.85
rightEncodeFunction · 0.85

Tested by 3