Versions in this module Expand all Collapse all v0 v0.2.0 Mar 13, 2019 v0.1.0 Jul 23, 2018 Changes in this version + var ErrMultipleMinerRewards = errors.New("only one miner reward transaction is allowed per block") + func GetBlockFees(block *pb.Block) uint64 + func GetMinerReward(block *pb.Block) (*pb.Transaction, error) + func GetTxCount(block *pb.Block) uint32 + func HashHeader(header *pb.Header) (multihash.Multihash, error) + func HashTransaction(tx *pb.Transaction) (multihash.Multihash, error) + func TransactionRoot(txs []*pb.Transaction) ([]byte, error) + type PrivateKey struct + func NewPrivateKey(privKey ic.PrivKey, keyType pb.KeyType) *PrivateKey + func (k PrivateKey) Bytes() ([]byte, error) + func (k PrivateKey) GetPublicKey() *PublicKey + func (k PrivateKey) Sign(payload []byte) ([]byte, error) + type PublicKey struct + func NewPublicKey(pubKey ic.PubKey, keyType pb.KeyType) *PublicKey + func (k PublicKey) Bytes() ([]byte, error) + func (k PublicKey) Verify(payload, sig []byte) (bool, error)