Documentation ¶
Index ¶
- func CheckAssetPrecision(Tx *tx.Transaction) error
- func CheckAttributeProgram(Tx *tx.Transaction) error
- func CheckDuplicateInput(tx *tx.Transaction) error
- func CheckDuplicateUtxoInBlock(tx *tx.Transaction, txPoolInputs []string) error
- func CheckLockedAsset(txn *tx.Transaction, ledger *ledger.Ledger) error
- func CheckTransactionBalance(Tx *tx.Transaction) error
- func CheckTransactionContracts(Tx *tx.Transaction) error
- func CheckTransactionPayload(Tx *tx.Transaction) error
- func IsDoubleSpend(tx *tx.Transaction, ledger *ledger.Ledger) bool
- func VerifyBlock(block *ledger.Block, ld *ledger.Ledger, completely bool) error
- func VerifyBlockData(bd *ledger.Blockdata, ledger *ledger.Ledger) error
- func VerifyHeader(bd *ledger.Header, ledger *ledger.Ledger) error
- func VerifySignableData(signableData sig.SignableData) (bool, error)
- func VerifySignature(signableData sig.SignableData, pubkey *crypto.PubKey, signature []byte) (bool, error)
- func VerifyTransaction(txn *tx.Transaction) ErrCode
- func VerifyTransactionWithBlock(TxPool []*tx.Transaction) error
- func VerifyTransactionWithLedger(txn *tx.Transaction, ledger *ledger.Ledger) ErrCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAssetPrecision ¶
func CheckAssetPrecision(Tx *tx.Transaction) error
func CheckAttributeProgram ¶
func CheckAttributeProgram(Tx *tx.Transaction) error
func CheckDuplicateInput ¶
func CheckDuplicateInput(tx *tx.Transaction) error
validate the transaction of duplicate UTXO input
func CheckDuplicateUtxoInBlock ¶
func CheckDuplicateUtxoInBlock(tx *tx.Transaction, txPoolInputs []string) error
func CheckLockedAsset ¶
func CheckLockedAsset(txn *tx.Transaction, ledger *ledger.Ledger) error
func CheckTransactionBalance ¶
func CheckTransactionBalance(Tx *tx.Transaction) error
func CheckTransactionContracts ¶
func CheckTransactionContracts(Tx *tx.Transaction) error
func CheckTransactionPayload ¶
func CheckTransactionPayload(Tx *tx.Transaction) error
func IsDoubleSpend ¶
func IsDoubleSpend(tx *tx.Transaction, ledger *ledger.Ledger) bool
func VerifySignableData ¶
func VerifySignableData(signableData sig.SignableData) (bool, error)
func VerifySignature ¶
func VerifyTransaction ¶
func VerifyTransaction(txn *tx.Transaction) ErrCode
func VerifyTransactionWithBlock ¶
func VerifyTransactionWithBlock(TxPool []*tx.Transaction) error
VerifyTransactionWithBlock verifys a transaction with current transaction pool in memory
func VerifyTransactionWithLedger ¶
func VerifyTransactionWithLedger(txn *tx.Transaction, ledger *ledger.Ledger) ErrCode
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.