package
0.0.0-20240806012525-31387fc58976
Repository: https://github.com/scdoproject/go-scdo.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
BatchValidateDebt validates a batch of debts.
BatchValidateTxs validates the state independent fields of specified txs in multiple threads.
DebtArrayToMap transfer debt array to debt map.
DebtMerkleRootHash calculates and returns the merkle root hash of the specified debts.
ExtractIstanbulExtra extracts all values of the IstanbulExtra from the header.
GetDebtsSize is the bytes of debts.
GetDebtTrie generates a debt trie for the specified debts.
GetReceiptTrie generate trie according the receipts.
GetTransactionsSize return the transaction size.
GetTxTrie generate trie according the txs.
IstanbulFilteredHeader returns a filtered header which some information (like seal, committed seals) are clean to fulfill the Istanbul hash rules.
MerkleRootHash calculates and returns the merkle root hash of the specified transactions.
NewBlock creates a new block.
NewBlockWithHeader creates a block with the given header data.
No description provided by the author
NewContractTransaction returns a transaction to create a smart contract.
NewDebtMap new debt map.
NewDebts new debts.
NewDebtWithContext new a debt.
NewDebtWithoutContext new debt.
No description provided by the author
No description provided by the author
NewMessageTransaction returns a transaction with the specified message.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewTransaction creates a new transaction to transfer asset.
ReceiptMerkleRootHash calculates and returns the merkle root hash of the specified receipts.

# Constants

challenge result.
DebtSize debt serialized size.
end exit.
No description provided by the author
No description provided by the author
start exit.
No description provided by the author
No description provided by the author
TransactionPreSize is the transaction size excluding payload size.
Transaction types.
Transaction types.
deposit.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
ErrAmountNegative is returned when the transaction amount is negative.
ErrAmountNil is returned when the transaction amount is nil.
ErrBlockDebtHashMismatch is returned when the calculated debts hash of block does not match the debts root hash in block header.
ErrBlockHashMismatch is returned when the block hash does not match the header hash.
ErrBlockHeaderNil is returned when the block header is nil.
ErrBlockTxDebtHashMismatch is returned when the calculated tx debts hash of block does not match the debts root hash in block header.
ErrBlockTxsHashMismatch is returned when the block transactions hash does not match the transaction root hash in the header.
ErrHashMismatch is returned when the transaction hash and data mismatch.
ErrIntrinsicGas is returned if the tx gas is too low.
ErrInvalidIstanbulHeaderExtra is returned if the length of extra-data is less than 32 bytes.
No description provided by the author
ErrPayloadEmpty is returned when create or call a contract without payload.
ErrPayloadOversized is returned when the payload size is larger than the MaxPayloadSize.
ErrPriceNegative is returned when the transaction gas price is negative or zero.
ErrPriceNil is returned when the transaction gas price is nil.
ErrSigInvalid is returned when the transaction signature is invalid.
ErrSigMissing is returned when the transaction signature is missing.
Fixed number of extra-data bytes reserved for validator seal.
Fixed number of extra-data bytes reserved for validator vanity.
IstanbulDigest represents a hash of "Istanbul practical byzantine fault tolerance" to identify whether the block is from Istanbul consensus engine.
MaxPayloadSize limits the payload size to prevent malicious transactions.
genesis account with enough balance (100K scdo) for benchmark test.
TransferAmountIntrinsicGas is the intrinsic gas to transfer amount.

# Structs

Block represents a block in the blockchain.
BlockHeader represents the header of a block in the blockchain.
Debt debt class.
DebtData debt data.
No description provided by the author
Log represents the contract execution log.
Receipt represents the transaction processing receipt.
SubTransaction SubTransaction class.
SubTransactionData subchain transaction data.
No description provided by the author
No description provided by the author
Transaction represents a transaction in the blockchain.
TransactionData wraps the data in a transaction.

# Interfaces

DebtVerifier interface.

# Type aliases

No description provided by the author
DebtIndex debt index.
ReceiptIndex represents an index that used to query block info by tx hash.
TxIndex represents an index that used to query block info by tx hash.
TxType represents transaction type.