-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replacing unsafe::zeroed() (#5685)
- Loading branch information
Showing
65 changed files
with
761 additions
and
154 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
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
12 changes: 11 additions & 1 deletion
12
noir-projects/noir-protocol-circuits/crates/parity-lib/src/parity_public_inputs.nr
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,7 +1,17 @@ | ||
use dep::types::{mocked::AggregationObject}; | ||
use dep::types::{mocked::AggregationObject, traits::Empty}; | ||
|
||
struct ParityPublicInputs { | ||
aggregation_object: AggregationObject, | ||
sha_root: Field, | ||
converted_root: Field, | ||
} | ||
|
||
impl Empty for ParityPublicInputs { | ||
fn empty() -> Self { | ||
ParityPublicInputs { | ||
aggregation_object: AggregationObject::empty(), | ||
sha_root: 0, | ||
converted_root: 0, | ||
} | ||
} | ||
} |
14 changes: 13 additions & 1 deletion
14
noir-projects/noir-protocol-circuits/crates/parity-lib/src/root/root_parity_input.nr
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,7 +1,19 @@ | ||
use dep::types::mocked::Proof; | ||
use dep::types::{ | ||
mocked::Proof, | ||
traits::Empty | ||
}; | ||
use crate::parity_public_inputs::ParityPublicInputs; | ||
|
||
struct RootParityInput { | ||
proof: Proof, | ||
public_inputs: ParityPublicInputs, | ||
} | ||
|
||
impl Empty for RootParityInput { | ||
fn empty() -> Self { | ||
RootParityInput { | ||
proof: Proof::empty(), | ||
public_inputs: ParityPublicInputs::empty(), | ||
} | ||
} | ||
} |
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
Oops, something went wrong.