Trait chain_core::property::Transaction
source · pub trait Transaction: Serialize {
type Input;
type Output;
type Inputs: ?Sized;
type Outputs: ?Sized;
// Required methods
fn inputs(&self) -> &Self::Inputs;
fn outputs(&self) -> &Self::Outputs;
}
Expand description
define a transaction within the blockchain. This transaction can be used for the UTxO model. However it can also be used for any other elements that the blockchain has (a transaction type to add Stacking Pools and so on…).
TODO: add a Readable trait bound