package
1.0.0
Repository: https://github.com/bytom/bystack.git
Documentation: pkg.go.dev

# Functions

ComputeOutputID assembles an output entry given a spend commitment and computes and returns its corresponding entry ID.
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.
NewOriginalTxOutput create a new original 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.
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.
OriginalOutputType represent the type of original output.
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.
VoteOutputType represent the type of vote output.

# Structs

Block describes a complete block, including its header and the transactions it contains.
BlockCommitment store the TransactionsMerkleRoot.
BlockHeader defines information about a block and is used in the Bystack.
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.
SupLink is an ordered pair of checkpoints (a, b), also written a → b the validators will sign it once considered as legal.
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.
VetoInput satisfies the TypedInput interface and represents a veto transaction.
VoteOutput satisfies the TypedOutput interface and represents a vote transaction.

# Interfaces

No description provided by the author
TypedOutput return the txoutput type.

# Type aliases

BlockWitness save the consensus node sign.
SupLinks is alias of SupLink slice.