Skip to content
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

Closed
wants to merge 5 commits into from
Closed

add: SDK coretypes #1253

wants to merge 5 commits into from

Conversation

supragya
Copy link
Contributor

Adds commonly used coretypes for further use in SDK.

sdk/src/coretypes.rs Outdated Show resolved Hide resolved
sdk/src/coretypes.rs Outdated Show resolved Hide resolved
#[derive(Archive, Deserialize, Serialize, PartialEq, Eq, Default, Copy, Clone)]
#[archive(compare(PartialEq))]
#[archive_attr(derive(Debug))]
pub struct Poseidon2HashType([u8; 4]);
Copy link
Collaborator

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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?

@supragya supragya closed this Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants