Struct snapps_txn_reference_impl::sequence_event::SequenceEvent [−][src]
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),
)