# Functions
ComputeOutputID assembles an intra-chain(!) 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.
NewCrossChainInput create a new CrossChainInput struct.
NewCrossChainOutput create a new output struct.
NewIntraChainOutput create a new output struct.
NewSpendInput create a new SpendInput struct.
NewTx returns a new Tx containing data and its hash.
NewVetoInput create a new VetoInput struct.
NewVoteOutput 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.
serflag variables for input types.
serflag variables for output types.
FlagAssist represent assist node.
FlagTxLeaf represent transaction of node.
FlagTxParent represent the parent of transaction of node.
serflag variables for output types.
serflag variables, start with 1.
serflag variables, start with 1.
serflag variables, start with 1.
serflag variables for input types.
serflag variables for input types.
serflag variables for output 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.
BlockWitness save the consensus node sign.
CoinbaseInput records the coinbase message.
CrossChainInput satisfies the TypedInput interface and represents a cross-chain transaction.
CrossChainOutput satisfies the TypedOutput interface and represents a cross-chain transaction.
IntraChainOutput satisfies the TypedOutput interface and represents a intra-chain transaction.
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
No description provided by the author
VetoInput satisfies the TypedInput interface and represents a veto transaction.
VoteOutput satisfies the TypedOutput interface and represents a vote transaction.