-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial implementation of Serialize trait for Account #257
Conversation
ethereum_history_api/circuits/lib/src/account_with_storage_test.nr
Outdated
Show resolved
Hide resolved
|
||
pub fn extend_back<LEN>(&mut self, other: [T; LEN]) { | ||
for i in 0..LEN { | ||
self.push_back(other[i]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beauty <3 love how our Fragment is growing up
} | ||
} | ||
|
||
global ACCOUNT_WITHIN_BLOCK_SERIALIZED_LEN = ACCOUNT_SERIALIZED_LEN + BYTES32_LENGTH; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it mean adding globals to use in generics now works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. But arithmetic on generics still does not
In order to verify recursive proofs - we need to present our structure arguments as a field array.
This PR introduces the
Serialize
trait & implements it onAccountWithinBlock
,Account
,U128
andBytes32
with tests.Noir has it planned, but it's not implemented yet: noir-lang/noir#3379