Struct snapps_txn_reference_impl::sequence_event::SequenceEvent[][src]

pub struct SequenceEvent<'a>(pub &'a [Fp]);
Expand description

A single sequence event emitted by a snapp. See crate::sequence_event for more.

Tuple Fields

0: &'a [Fp]

Implementations

Compute the hash input of a single sequence event by calling HashInput::add_field for each field element in the event.

let mut hash_input = HashInput::empty();
for event_part in event.0.iter() {
    HashInput::add_field(&mut hash_input, *event_part)
}
hash_input

Compute the hash of a single sequence event, using SequenceEvent::hash_input and HashPrefixState::sequence_event.

Hash::compute_hash(
    HashPrefixState::sequence_event(),
    SequenceEvent::hash_input(event),
)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.