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

Interface TupleHash

crypto/sha3/tuple_hash.go:10–19  ·  view source on GitHub ↗

TupleHash defines the interface to hash functions that support tuple input.

Source from the content-addressed store, hash-verified

8// TupleHash defines the interface to hash functions that
9// support tuple input.
10type TupleHash interface {
11 hash.Hash
12
13 // WriteItem writes length-prefixed item to the hash state.
14 WriteItem(item []byte) (written int, err error)
15
16 // WriteItemPrefix writes length prefix to the hash state
17 // and must be followed by normal Write calls.
18 WriteItemPrefix(length int) (written int, err error)
19}
20
21// TupleHashXOF defines the interface to hash functions that
22// support tuple input with extensible output.

Callers 7

TestTupleHashNISTSample1Function · 0.65
TestTupleHashNISTSample2Function · 0.65
TestTupleHashNISTSample3Function · 0.65
TestTupleHashNISTSample4Function · 0.65
TestTupleHashNISTSample5Function · 0.65
TestTupleHashNISTSample6Function · 0.65

Implementers 1

thashcrypto/sha3/tuple_hash.go

Calls

no outgoing calls

Tested by

no test coverage detected