package
1.1.1
Repository: https://github.com/bytom/blockchain.git
Documentation: pkg.go.dev

# Functions

ComputeOutputID assembles an output entry given a spend commitment and computes and returns its corresponding entry ID.
GetStatusMerkleTreeProof return a proof of merkle tree, which used to proof the status of transaction is valid.
GetTxMerkleTreeProof return a proof of merkle tree, which used to proof the transaction does exist in the merkle tree.
MapBlock converts a types block to bc block.
MapTx converts a types TxData object into its entries-based representation.
NewCoinbaseInput creates a new coinbase input struct.
NewIssuanceInput create a new IssuanceInput struct.
NewSpendInput create a new SpendInput struct.
NewTx returns a new Tx containing data and its hash.
NewTxOutput create a new output struct.
TxMerkleRoot creates a merkle tree from a slice of transactions and returns the root hash of the tree.
TxStatusMerkleRoot creates a merkle tree from a slice of bc.TxVerifyResult.
ValidateStatusMerkleTreeProof validate the merkle tree of transaction status.
ValidateTxMerkleTreeProof validate the merkle tree of transactions.

# Constants

serflag variables for input types.
FlagAssist represent assist node.
FlagTxLeaf represent transaction of node.
FlagTxParent represent the parent of transaction of node.
serflag variables for input types.
serflag variables, start with 1.
serflag variables, start with 1.
serflag variables, start with 1.
serflag variables for input types.

# Structs

Block describes a complete block, including its header and the transactions it contains.
BlockCommitment store the TransactionsMerkleRoot && TransactionStatusHash.
BlockHeader defines information about a block and is used in the Bytom.
CoinbaseInput records the coinbase message.
IssuanceInput satisfies the TypedInput interface and represents a issuance.
OutputCommitment contains the commitment data for a transaction output.
SpendCommitment contains the commitment data for a transaction output.
SpendInput satisfies the TypedInput interface and represents a spend transaction.
Tx holds a transaction along with its hash.
TxData encodes a transaction in the blockchain.
No description provided by the author
TxOutput is the top level struct of tx output.

# Interfaces

No description provided by the author