Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NilHash sum(nil) NilHash = types.HexToHash("0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470") // EmptyUncleHash rlpHash([]*Header(nil)) EmptyUncleHash = types.HexToHash("0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347") )
View Source
var HasherPool = sync.Pool{ New: func() interface{} { return sha3.NewLegacyKeccak256() }, }
hasherPool holds LegacyKeccak256 hashers for rlpHash.
Functions ¶
func DeriveSha ¶
func DeriveSha(list DerivableList) (h types.Hash)
DeriveSha creates the tree hashes of transactions and receipts in a block header.
func Hash ¶
Hash defines a function that returns the sha256 checksum of the data passed in. https://github.com/ethereum/consensus-specs/blob/v0.9.3/specs/core/0_beacon-chain.md#hash
func PrefixedRlpHash ¶
PrefixedRlpHash writes the prefix into the hasher before rlp-encoding x. It's used for typed transactions.
Types ¶
Click to show internal directories.
Click to hide internal directories.