identity_iota::iota::rebased::transaction

Trait ProtoTransaction

Source
pub trait ProtoTransaction {
    type Input;
    type Tx: ProtoTransaction;

    // Required method
    fn with(self, input: Self::Input) -> Self::Tx;
}
Expand description

Interface to describe an operation that can eventually be turned into a Transaction, given the right input.

Required Associated Types§

Source

type Input

The input required by this operation.

Source

type Tx: ProtoTransaction

This operation’s next state. Can either be another ProtoTransaction or a whole Transaction ready to be executed.

Required Methods§

Source

fn with(self, input: Self::Input) -> Self::Tx

Feed this operation with its required input, advancing its state to another ProtoTransaction that may or may not be ready for execution.

Implementors§