Skip to content

Move secp256k1_recover to its own crate#1656

Merged
samkim-crypto merged 23 commits intoanza-xyz:masterfrom
kevinheavey:move-secp256k1
Jul 17, 2024
Merged

Move secp256k1_recover to its own crate#1656
samkim-crypto merged 23 commits intoanza-xyz:masterfrom
kevinheavey:move-secp256k1

Conversation

@kevinheavey
Copy link
Copy Markdown

@kevinheavey kevinheavey commented Jun 8, 2024

Problem

libsecp256k1 is a heavy dependency and the use case is niche

Summary of Changes

Moves secp256k1_recover out of solana-program and into its own crate. Re-export with deprecation notice

@kevinheavey
Copy link
Copy Markdown
Author

kevinheavey commented Jun 8, 2024

The circular dependency check is failing but the premise of the check is wrong. It's complaining about the recommended way to activate a feature in tests: https://stackoverflow.com/questions/68618789/is-it-possible-to-enable-a-rust-feature-only-in-test

Update: turns out I don't need that to make the tests pass so we can worry about it another time

@kevinheavey
Copy link
Copy Markdown
Author

Coverage failure means nothing to me: /solana/scripts/../ci/intercept.sh: command failed; please see /dev/null in artifacts

Comment thread sdk/program/src/syscalls/definitions.rs
@kevinheavey
Copy link
Copy Markdown
Author

@samkim-crypto after some frozen-abi adventures, all CI except for crate-check is now passing

@kevinheavey kevinheavey force-pushed the move-secp256k1 branch 3 times, most recently from 2d2ab60 to 75b79e7 Compare July 15, 2024 21:59
Copy link
Copy Markdown

@samkim-crypto samkim-crypto left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks a lot for all these changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants