validation

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 VerifyBlock

func VerifyBlock(block *ledger.Block, ld *ledger.Ledger, completely bool) error

func VerifyBlockData

func VerifyBlockData(bd *ledger.Blockdata, ledger *ledger.Ledger) error

func VerifyHeader

func VerifyHeader(bd *ledger.Header, ledger *ledger.Ledger) error

func VerifySignableData

func VerifySignableData(signableData sig.SignableData) (bool, error)

func VerifySignature

func VerifySignature(signableData sig.SignableData, pubkey *crypto.PubKey, signature []byte) (bool, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL