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

feat: stable compilation of sp1-zkvm #810

Merged
merged 7 commits into from
May 29, 2024

Conversation

ratankaliani
Copy link
Member

@ratankaliani ratankaliani commented May 24, 2024

Remove the generic_const_exprs so that sp1-zkvm compiles with a stable toolchain.

@ratankaliani ratankaliani changed the base branch from main to dev May 24, 2024 01:01
@ratankaliani ratankaliani marked this pull request as ready for review May 24, 2024 01:04
@ratankaliani ratankaliani marked this pull request as draft May 28, 2024 19:28
@ratankaliani ratankaliani marked this pull request as ready for review May 28, 2024 19:28
words_to_bytes_le::<{ NUM_WORDS * 4 }>(&self.limbs)
pub fn to_le_bytes(&self) -> Vec<u8> {
let le_bytes = words_to_bytes_le(&self.limbs);
assert!(le_bytes.len() == NUM_WORDS * 4);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: make it a debug_assert

let u32_limbs = bytes_to_words_le::<{ NUM_WORDS }>(&limbs);
pub fn from_le_bytes(limbs: &[u8]) -> Self {
let u32_limbs = bytes_to_words_le(limbs);
assert!(u32_limbs.len() == NUM_WORDS);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: make it a debug_assert

@ratankaliani ratankaliani enabled auto-merge (squash) May 29, 2024 06:06
@ratankaliani ratankaliani changed the base branch from dev to main May 29, 2024 16:53
@ratankaliani ratankaliani changed the base branch from main to dev May 29, 2024 16:53
@ratankaliani ratankaliani changed the title feat: remove sp1-zkvm precompile nightly feat: stable compilation of sp1-zkvm May 29, 2024
@ratankaliani ratankaliani merged commit 9935ce9 into dev May 29, 2024
6 checks passed
@ratankaliani ratankaliani deleted the ratan/remove-zkvm-precompile-nightly branch May 29, 2024 17:34
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.

None yet

2 participants