pub trait Transaction: Serialize + Deserialize {
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…).
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.