Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Oct 25, 2024
1 parent 055316b commit b97a526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use crate::{context::PublicContext, event::event_interface::EventInterface};
use dep::protocol_types::traits::Serialize;

fn emit<Event, let N: u32, let M: u32>(context: &mut PublicContext, event: Event)
where
Event: EventInterface<N>,
Event: EventInterface<N> + Serialize<N>,
[Field; N]: LensForEventSelector<N, M>,
{
let selector = Event::get_event_type_id();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use dep::types::{
hash::poseidon2_hash_with_separator, scalar::Scalar, traits::Empty,
};
use std::embedded_curve_ops::fixed_base_scalar_mul as derive_public_key;
use types::merkle_tree::IndexedTreeLeafPreimage;

pub struct KeyValidationHint {
sk_m: Scalar,
Expand Down

0 comments on commit b97a526

Please sign in to comment.