Documentation ¶
Index ¶
- func HashBlock(block *proto.Block) ([]byte, error)
- func HashTransaction(tx *proto.Transaction) ([]byte, error)
- func SignBlock(pk *crypto.PrivateKey, block *proto.Block) (*crypto.Signature, error)
- func SignTransaction(pk *crypto.PrivateKey, tx *proto.Transaction) (*crypto.Signature, error)
- func VerifyTransaction(tx *proto.Transaction) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashTransaction ¶
func HashTransaction(tx *proto.Transaction) ([]byte, error)
func SignTransaction ¶
func SignTransaction(pk *crypto.PrivateKey, tx *proto.Transaction) (*crypto.Signature, error)
func VerifyTransaction ¶
func VerifyTransaction(tx *proto.Transaction) (bool, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.