Module ergo_lib::chain::transaction
source · Expand description
Ergo transaction
Re-exports
pub use input::*;
Modules
- Transaction input
- Represent
reduced
transaction, i.e. unsigned transaction where each unsigned input is augmented with ReducedInput which contains a script reduction result. - Unsigned (without proofs) transaction
Structs
- Inputs, that are used to enrich script context, but won’t be spent by the transaction
- ErgoTransaction is an atomic state transition operation. It destroys Boxes from the state and creates new ones. If transaction is spending boxes protected by some non-trivial scripts, its inputs should also contain proof of spending correctness - context extension (user-defined key-value map) and data inputs (links to existing boxes in the state) that may be used during script reduction to crypto, signatures that satisfies the remaining cryptographic protection of the script. Transactions are not encrypted, so it is possible to browse and view every transaction ever collected into a block.
- Transaction id (ModifierId in sigmastate)
Enums
- Error when working with Transaction
- Errors on transaction verification
Functions
- Returns distinct token ids from all given ErgoBoxCandidate’s
- Verify transaction input’s proof
Type Aliases
- BoundedVec type for Tx inputs, output_candidates and outputs