Struct snapps_txn_reference_impl::event::Event [−][src]
Expand description
A single event emitted by a snapp. See crate::event
for more.
Tuple Fields
0: &'a [Fp]
Implementations
Compute the hash input of a single 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 event, using Event::hash_input
and
HashPrefixState::event
.
Hash::compute_hash(HashPrefixState::event(), Event::hash_input(event))