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

Interface TupleHashXOF

crypto/sha3/tuple_hash.go:23–32  ·  view source on GitHub ↗

TupleHashXOF defines the interface to hash functions that support tuple input with extensible output.

Source from the content-addressed store, hash-verified

21// TupleHashXOF defines the interface to hash functions that
22// support tuple input with extensible output.
23type TupleHashXOF interface {
24 ShakeHash
25
26 // WriteItem writes length-prefixed item to the hash state.
27 WriteItem(item []byte) (written int, err error)
28
29 // WriteItemPrefix writes length prefix to the hash state
30 // and must be followed by normal Write calls.
31 WriteItemPrefix(length int) (written int, err error)
32}
33
34type thash struct { // implements hash.Hash and ShakeHash
35 d *state

Callers

nothing calls this directly

Implementers 1

thashcrypto/sha3/tuple_hash.go

Calls

no outgoing calls

Tested by

no test coverage detected