Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Verifier ¶
type Verifier interface { // Verify that [tx] is semantically valid. // [ins] and [outs] are the inputs and outputs of [tx]. // [creds] are the credentials of [tx], which allow [ins] to be spent. // [unlockedProduced] is the map of assets that were produced and their // amounts. // The [ins] must have at least [unlockedProduced] than the [outs]. // // Precondition: [tx] has already been syntactically verified. // // Note: [unlockedProduced] is modified by this method. VerifySpend( tx txs.UnsignedTx, utxoDB avax.UTXOGetter, ins []*avax.TransferableInput, outs []*avax.TransferableOutput, creds []verify.Verifiable, unlockedProduced map[ids.ID]uint64, ) error // Verify that [tx] is semantically valid. // [utxos[i]] is the UTXO being consumed by [ins[i]]. // [ins] and [outs] are the inputs and outputs of [tx]. // [creds] are the credentials of [tx], which allow [ins] to be spent. // [unlockedProduced] is the map of assets that were produced and their // amounts. // The [ins] must have at least [unlockedProduced] more than the [outs]. // // Precondition: [tx] has already been syntactically verified. // // Note: [unlockedProduced] is modified by this method. VerifySpendUTXOs( tx txs.UnsignedTx, utxos []*avax.UTXO, ins []*avax.TransferableInput, outs []*avax.TransferableOutput, creds []verify.Verifiable, unlockedProduced map[ids.ID]uint64, ) error }
Click to show internal directories.
Click to hide internal directories.