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

Extract signer crates #3087

Merged
merged 28 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
cfa9391
extract signer crate
kevinheavey Sep 14, 2024
9c65ee0
fmt
kevinheavey Sep 15, 2024
c8fbe04
fix bs58 std usage
kevinheavey Sep 15, 2024
eefbb87
extract seed-derivable crate
kevinheavey Sep 23, 2024
50224e5
extract seed-phrase crate
kevinheavey Sep 23, 2024
d63eb33
fix copy-pasted doc
kevinheavey Sep 23, 2024
a8b6c38
extract presigner crate
kevinheavey Sep 23, 2024
7b55f26
make keypair module optional in solana-signer
kevinheavey Sep 23, 2024
dc57f37
remove serde_json dep and fix test features
kevinheavey Sep 24, 2024
82d5af7
remove thiserror from solana-signer
kevinheavey Oct 6, 2024
91031a0
lint
kevinheavey Oct 6, 2024
10d59cd
more lint
kevinheavey Oct 6, 2024
e27c28d
fix dev dep feature
kevinheavey Oct 6, 2024
3920ad9
sort deps
kevinheavey Oct 6, 2024
fd8a47a
remove itertools from solana-signer
kevinheavey Oct 6, 2024
144ec3c
move wasm impl to signer crate
kevinheavey Oct 6, 2024
4252bb7
add doc_auto_cfg like in #3121
kevinheavey Oct 12, 2024
017783b
post-rebase fix
kevinheavey Nov 1, 2024
bc8fe70
another post-rebase fix
kevinheavey Nov 1, 2024
5f3b787
fmt
kevinheavey Nov 1, 2024
c5cbeb6
make keypair functionality of solana-seed-phrase optional
kevinheavey Nov 1, 2024
f531541
fix feature-gated imports
kevinheavey Nov 1, 2024
952c997
Extract solana-keypair, move other things around
joncinque Nov 4, 2024
5d19c05
Cleanup things that I missed
joncinque Nov 4, 2024
d6c275f
Remove space
joncinque Nov 4, 2024
a8ef164
Add deprecated notice
joncinque Nov 4, 2024
06426cc
Add deprecation notices
joncinque Nov 6, 2024
1720552
Refactor SeedDerivable trait implementation
joncinque Nov 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 60 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ members = [
"sdk/hash",
"sdk/inflation",
"sdk/instruction",
"sdk/keypair",
"sdk/macro",
"sdk/msg",
"sdk/native-token",
Expand All @@ -130,6 +131,7 @@ members = [
"sdk/package-metadata-macro",
"sdk/packet",
"sdk/precompile-error",
"sdk/presigner",
"sdk/program",
"sdk/program-entrypoint",
"sdk/program-error",
Expand All @@ -139,10 +141,13 @@ members = [
"sdk/pubkey",
"sdk/rent",
"sdk/sanitize",
"sdk/seed-derivable",
"sdk/seed-phrase",
"sdk/serde-varint",
"sdk/serialize-utils",
"sdk/sha256-hasher",
"sdk/signature",
"sdk/signer",
"sdk/slot-hashes",
"sdk/slot-history",
"sdk/stable-layout",
Expand Down Expand Up @@ -359,6 +364,7 @@ quinn = "0.11.4"
quinn-proto = "0.11.7"
quote = "1.0"
rand = "0.8.5"
rand0-7 = { package = "rand", version = "0.7" }
rand_chacha = "0.3.1"
rayon = "1.10.0"
reed-solomon-erasure = "6.0.0"
Expand Down Expand Up @@ -447,6 +453,7 @@ solana-hash = { path = "sdk/hash", version = "=2.2.0", default-features = false
solana-inflation = { path = "sdk/inflation", version = "=2.2.0" }
solana-inline-spl = { path = "inline-spl", version = "=2.2.0" }
solana-instruction = { path = "sdk/instruction", version = "=2.2.0", default-features = false }
solana-keypair = { path = "sdk/keypair", version = "=2.2.0" }
solana-last-restart-slot = { path = "sdk/last-restart-slot", version = "=2.2.0" }
solana-lattice-hash = { path = "lattice-hash", version = "=2.2.0" }
solana-ledger = { path = "ledger", version = "=2.2.0" }
Expand All @@ -470,6 +477,7 @@ solana-perf = { path = "perf", version = "=2.2.0" }
solana-poh = { path = "poh", version = "=2.2.0" }
solana-poseidon = { path = "poseidon", version = "=2.2.0" }
solana-precompile-error = { path = "sdk/precompile-error", version = "=2.2.0" }
solana-presigner = { path = "sdk/presigner", version = "=2.2.0" }
solana-program = { path = "sdk/program", version = "=2.2.0", default-features = false }
solana-program-error = { path = "sdk/program-error", version = "=2.2.0" }
solana-program-memory = { path = "sdk/program-memory", version = "=2.2.0" }
Expand All @@ -484,10 +492,13 @@ solana-rayon-threadlimit = { path = "rayon-threadlimit", version = "=2.2.0" }
solana-remote-wallet = { path = "remote-wallet", version = "=2.2.0", default-features = false }
solana-rent = { path = "sdk/rent", version = "=2.2.0", default-features = false }
solana-sanitize = { path = "sdk/sanitize", version = "=2.2.0" }
solana-seed-derivable = { path = "sdk/seed-derivable", version = "=2.2.0" }
solana-seed-phrase = { path = "sdk/seed-phrase", version = "=2.2.0" }
solana-serde-varint = { path = "sdk/serde-varint", version = "=2.2.0" }
solana-serialize-utils = { path = "sdk/serialize-utils", version = "=2.2.0" }
solana-sha256-hasher = { path = "sdk/sha256-hasher", version = "=2.2.0" }
solana-signature = { path = "sdk/signature", version = "=2.2.0", default-features = false }
solana-signer = { path = "sdk/signer", version = "=2.2.0" }
solana-slot-hashes = { path = "sdk/slot-hashes", version = "=2.2.0" }
solana-slot-history = { path = "sdk/slot-history", version = "=2.2.0" }
solana-time-utils = { path = "sdk/time-utils", version = "=2.2.0" }
Expand Down
59 changes: 56 additions & 3 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 11 additions & 5 deletions sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ full = [
"serde_json",
"solana-signature",
"ed25519-dalek",
"ed25519-dalek-bip32",
"libsecp256k1",
"sha3",
"solana-commitment-config",
"digest",
"solana-pubkey/rand",
"dep:solana-keypair",
"dep:solana-precompile-error",
"dep:solana-presigner",
"dep:solana-seed-derivable",
"dep:solana-seed-phrase",
"dep:solana-signer",
"dep:solana-transaction-error"
]
borsh = ["dep:borsh", "solana-program/borsh", "solana-secp256k1-recover/borsh"]
Expand Down Expand Up @@ -65,12 +69,10 @@ chrono = { workspace = true, features = ["alloc"], optional = true }
curve25519-dalek = { workspace = true, optional = true }
digest = { workspace = true, optional = true }
ed25519-dalek = { workspace = true, optional = true }
ed25519-dalek-bip32 = { workspace = true, optional = true }
generic-array = { workspace = true, features = [
"serde",
"more_lengths",
], optional = true }
hmac = { workspace = true }
itertools = { workspace = true }
lazy_static = { workspace = true }
libsecp256k1 = { workspace = true, optional = true, features = ["hmac"] }
Expand All @@ -79,10 +81,9 @@ memmap2 = { workspace = true, optional = true }
num-derive = { workspace = true }
num-traits = { workspace = true }
num_enum = { workspace = true }
pbkdf2 = { workspace = true }
qualifier_attr = { workspace = true, optional = true }
rand = { workspace = true, optional = true }
rand0-7 = { package = "rand", version = "0.7", optional = true }
rand0-7 = { workspace = true, optional = true }
serde = { workspace = true }
serde_bytes = { workspace = true }
serde_derive = { workspace = true }
Expand All @@ -106,15 +107,19 @@ solana-frozen-abi-macro = { workspace = true, optional = true, features = [
] }
solana-inflation = { workspace = true, features = ["serde"] }
solana-instruction = { workspace = true }
solana-keypair = { workspace = true, optional = true }
solana-native-token = { workspace = true }
solana-packet = { workspace = true, features = ["bincode", "serde"] }
solana-precompile-error = { workspace = true, optional = true }
solana-presigner = { workspace = true, optional = true }
solana-program = { workspace = true }
solana-program-memory = { workspace = true }
solana-pubkey = { workspace = true, default-features = false, features = ["std"] }
solana-sanitize = { workspace = true }
solana-sdk-macro = { workspace = true }
solana-secp256k1-recover = { workspace = true }
solana-seed-derivable = { workspace = true, optional = true }
solana-seed-phrase = { workspace = true, optional = true }
solana-serde-varint = { workspace = true }
solana-short-vec = { workspace = true }
solana-signature = { workspace = true, features = [
Expand All @@ -123,6 +128,7 @@ solana-signature = { workspace = true, features = [
"std",
"verify",
], optional = true }
solana-signer = { workspace = true, optional = true }
solana-time-utils = { workspace = true }
solana-transaction-error = { workspace = true, features = ["serde"], optional = true }
thiserror = { workspace = true }
Expand Down
Loading
Loading