// PrefixedRlpHash writes the prefix into the hasher before rlp-encoding x.
// It's used for typed transactions.
PrefixedRlpHash writes the prefix into the hasher before rlp-encoding x.
It's used for typed transactions.
// PrefixedRlpHash writes the prefix into the hasher before rlp - encoding x . // It ' s used for typed transactions .
func PrefixedRlpHash(prefix byte, x interface{}) (h Hash) {
	sha := hasherPool.Get().(KeccakState)
	defer hasherPool.Put(sha)
	sha.Reset()
	sha.Write([]byte{prefix})
	rlp.Encode(sha, x)
	sha.Read(h[:])
	return h
}
func PrefixedRlpHash ( prefix byte , x interface { } ) ( h Hash ) { sha := hasherPool . Get ( ) . ( KeccakState ) defer hasherPool . Put ( sha ) sha . Reset ( ) sha . Write ( [ ] byte { prefix } ) rlp . Encode ( sha , x ) sha . Read ( h [ : ] ) return h }
PrefixedRlpHash writes the prefix into the hasher before rlp-encoding x.
PrefixedRlpHash writes the prefix into the hasher before rlp - encoding x .