Skip to content

Commit

Permalink
make keypair functionality of solana-seed-phrase optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Nov 2, 2024
1 parent 5f3b787 commit c5cbeb6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/seed-derivable/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = { workspace = true }
ed25519-dalek = { workspace = true }
ed25519-dalek-bip32 = { workspace = true }
solana-derivation-path = { workspace = true }
solana-seed-phrase = { workspace = true }
solana-seed-phrase = { workspace = true, features = ["keypair"] }
solana-signer = { workspace = true }

[package.metadata.docs.rs]
Expand Down
5 changes: 4 additions & 1 deletion sdk/seed-phrase/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ edition = { workspace = true }
hmac = { workspace = true }
pbkdf2 = { workspace = true }
sha2 = { workspace = true }
solana-signer = { workspace = true, features = ["keypair"] }
solana-signer = { workspace = true }

[dev-dependencies]
tiny-bip39 = { workspace = true }

[features]
keypair = ["solana-signer/keypair"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
1 change: 1 addition & 0 deletions sdk/seed-phrase/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub fn generate_seed_from_seed_phrase_and_passphrase(
seed
}

#[cfg(feature = "keypair")]
pub fn keypair_from_seed_phrase_and_passphrase(
seed_phrase: &str,
passphrase: &str,
Expand Down

0 comments on commit c5cbeb6

Please sign in to comment.