-
Notifications
You must be signed in to change notification settings - Fork 298
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
feat: Packable trait #11136
base: 01-10-refactor_using_u128_in_contract_function_args
Are you sure you want to change the base?
feat: Packable trait #11136
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
6a3b38f
to
2c8f7e1
Compare
2c8f7e1
to
67fafc2
Compare
Would this require users to implement Does it make sense to add this blanket implementation, so users are not forced to impl<let N: u32> Packable<N> for T
where
T: Serialize<N> + Deserialize<N>
{
fn pack(self) -> [Field; N] {
self.serialize()
}
fn unpack(packed: [Field; N]) -> Self {
Self::deserialize(packed)
}
} |
Fixes #11285
Fixes #7728