Documentation
¶
Index ¶
- func BlockHeaderBytes(b *common.BlockHeader) []byte
- func BockDataHash(block common.Block, hashFunc HashFunc) []byte
- func BockHeaderHash(block common.Block, hashFunc HashFunc) []byte
- func Bytes2Block(data []byte) (*common.Block, error)
- func Sha256Hash(data []byte) []byte
- func Sm3Hash(data []byte) []byte
- type HashFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockHeaderBytes ¶
func BlockHeaderBytes(b *common.BlockHeader) []byte
func BockDataHash ¶
计算区块 data 部分 hash
Types ¶
Click to show internal directories.
Click to hide internal directories.