Documentation
¶
Index ¶
- func GetMerkleTree(b *proto.Block) (*merkletree.MerkleTree, error)
- func HashBlock(block *proto.Block) []byte
- func HashHeader(header *proto.Header) []byte
- func HashTransaction(tx *proto.Transaction) []byte
- func SignBlock(pk *crypto.PrivateKey, b *proto.Block) *crypto.Signature
- func SignTransaction(pk *crypto.PrivateKey, tx *proto.Transaction) *crypto.Signature
- func VerifyBlock(b *proto.Block) bool
- func VerifyRootHash(b *proto.Block) bool
- func VerifyTransaction(tx *proto.Transaction) bool
- type TxHash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMerkleTree ¶
func GetMerkleTree(b *proto.Block) (*merkletree.MerkleTree, error)
func HashHeader ¶
func HashTransaction ¶
func HashTransaction(tx *proto.Transaction) []byte
func SignTransaction ¶
func SignTransaction(pk *crypto.PrivateKey, tx *proto.Transaction) *crypto.Signature
func VerifyBlock ¶
func VerifyRootHash ¶
func VerifyTransaction ¶
func VerifyTransaction(tx *proto.Transaction) bool
Types ¶
Click to show internal directories.
Click to hide internal directories.