-
Notifications
You must be signed in to change notification settings - Fork 9
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
add: SDK coretypes #1253
add: SDK coretypes #1253
Conversation
Co-authored-by: bing <[email protected]>
#[derive(Archive, Deserialize, Serialize, PartialEq, Eq, Default, Copy, Clone)] | ||
#[archive(compare(PartialEq))] | ||
#[archive_attr(derive(Debug))] | ||
pub struct Poseidon2HashType([u8; 4]); |
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.
This seems suspicious. Our hash digest surely is longer than 8 * 4 = 32 bits?
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.
Will fix it when we actually make use of it. I treat it as a placeholder for now
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.
Plus Poseidon2Hash for us can be different depending on params?
Adds commonly used coretypes for further use in SDK.