forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 1k
Move secp256k1_recover to its own crate #1656
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
Merged
+104
−20
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
dabf83f
move secp256k1_recover to its own crate
kevinheavey dc2f19d
move syscall definition
kevinheavey 3a3ada4
remove libsecp256k1 dep from solana-program
kevinheavey 7c3da76
update sbf lock file
kevinheavey 0d0bd0d
update doc links
kevinheavey e60f3e7
fix doc tests and dev deps
kevinheavey 61f58a7
update deps in programs/sbf
kevinheavey efa3ad5
fmt
kevinheavey 5f617ee
add frozen-abi support
kevinheavey 504a38b
update lock files
kevinheavey 7da57e1
use borsh directly in solana-secp256k1-recover dev deps
kevinheavey ab2aa51
re-export solana_secp256k1_recover with deprecation
kevinheavey e68eed7
re-export in solana-program too
kevinheavey d085584
use define_syscall macro now that it's available as a standalone crate
kevinheavey e0d89ce
fix macro import
kevinheavey daa5c02
only require solana-define-syscall when target_os = "solana"
kevinheavey 90c5060
re-export sol_secp256k1_recover with deprecation warning
kevinheavey deea703
add docs.rs metadata
kevinheavey bd14864
don't compile doc examples to get around false positive in order-crat…
kevinheavey 060a698
fmt
kevinheavey b0525c4
fix AbiExample duplication
kevinheavey da78ffa
Revert "fix AbiExample duplication"
kevinheavey 3f33a1c
fix frozen-abi usage
kevinheavey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| [package] | ||
| name = "solana-secp256k1-recover" | ||
| description = "Solana SECP256K1 Recover" | ||
| documentation = "https://docs.rs/solana-secp256k1-recover" | ||
| version = { workspace = true } | ||
| authors = { workspace = true } | ||
| repository = { workspace = true } | ||
| homepage = { workspace = true } | ||
| license = { workspace = true } | ||
| edition = { workspace = true } | ||
|
|
||
| [dependencies] | ||
| borsh = { workspace = true, optional = true } | ||
| solana-frozen-abi = { workspace = true, optional = true } | ||
| solana-frozen-abi-macro = { workspace = true, optional = true } | ||
| thiserror = { workspace = true } | ||
|
|
||
| [target.'cfg(target_os = "solana")'.dependencies] | ||
| solana-define-syscall = { workspace = true } | ||
|
|
||
| [target.'cfg(not(target_os = "solana"))'.dependencies] | ||
| libsecp256k1 = { workspace = true } | ||
|
|
||
| [dev-dependencies] | ||
| anyhow = { workspace = true } | ||
| borsh = { workspace = true } | ||
|
|
||
| [target.'cfg(not(target_os = "solana"))'.dev-dependencies] | ||
| libsecp256k1 = { workspace = true, features = ["hmac"] } | ||
|
|
||
| [build-dependencies] | ||
| rustc_version = { workspace = true } | ||
|
|
||
| [features] | ||
| borsh = ["dep:borsh"] | ||
| frozen-abi = ["dep:solana-frozen-abi", "dep:solana-frozen-abi-macro"] | ||
|
|
||
| [package.metadata.docs.rs] | ||
| targets = ["x86_64-unknown-linux-gnu"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../frozen-abi/build.rs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.