-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated pull of development from the [noir](https://github.com/noir-lang/noir) programming language, a dependency of Aztec. BEGIN_COMMIT_OVERRIDE fix: Fix panic in comptime code (noir-lang/noir#6361) feat: let the LSP import code action insert into existing use statements (noir-lang/noir#6358) chore: minor tweaks to comptime doc (noir-lang/noir#6357) feat: LSP auto-import will try to add to existing use statements (noir-lang/noir#6354) fix: allow type aliases in let patterns (noir-lang/noir#6356) feat(test): Run test matrix on stdlib tests (noir-lang/noir#6352) fix(ssa): Do not mark an array from a parameter mutable (noir-lang/noir#6355) fix: always inline `derive_generators` (noir-lang/noir#6350) chore: add test to check that duplicate definitions generated from macros throws error (noir-lang/noir#6351) chore: switch to btreeset for deterministic ordering (noir-lang/noir#6348) feat(perf): Use [u32;16] for message block in sha256 (noir-lang/noir#6324) chore: add some tests for type aliases feat: remove 'single use' intermediate variables (noir-lang/noir#6268) feat: Sync from aztec-packages (noir-lang/noir#6345) feat(profiler)!: New flamegraph command that profiles the opcodes executed (noir-lang/noir#6327) feat: check trait where clause (noir-lang/noir#6325) fix: better formatting of leading/trailing line/block comments in expression lists (noir-lang/noir#6338) feat: let the formatter remove lambda block braces for single-statement blocks (noir-lang/noir#6335) chore: run tests in metaprogramming.rs (noir-lang/noir#6339) END_COMMIT_OVERRIDE --------- Co-authored-by: Tom French <[email protected]>
- Loading branch information
1 parent
769305e
commit 2abfff3
Showing
12 changed files
with
58 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
use dep::protocol_types::abis::event_selector::EventSelector; | ||
use dep::protocol_types::traits::{Deserialize, Serialize}; | ||
|
||
pub trait EventInterface<let N: u32> { | ||
pub trait EventInterface<let N: u32>: Serialize<N> { | ||
fn private_to_be_bytes(self, randomness: Field) -> [u8; N * 32 + 64]; | ||
fn to_be_bytes(self) -> [u8; N * 32 + 32]; | ||
fn get_event_type_id() -> EventSelector; | ||
fn emit<Env>(self, _emit: fn[Env](Self) -> ()); | ||
fn emit<Env>(self, emit: fn[Env](Self) -> ()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters