From 03f02a7225d9bc5add92b7657790ee1ac8ab90a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= <123550+andresilva@users.noreply.github.com> Date: Tue, 19 Dec 2023 23:24:46 +0000 Subject: [PATCH] update schnorrkel to 0.11.4 (#20) --- Cargo.toml | 5 ++++- src/lib.rs | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d78bb70..d6ed61b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,12 @@ repository = "https://github.com/paritytech/substrate-bip39" pbkdf2 = { version = "0.8.0", default-features = false } sha2 = { version = "0.9.5", default-features = false } hmac = "0.11.0" -schnorrkel = { version = "0.9.1", default-features = false, features = ["u64_backend"] } +schnorrkel = { version = "0.11.4", default-features = false } zeroize = { version = "1.0.0", default-features = false } [dev-dependencies] tiny-bip39 = "0.8.0" rustc-hex = "2.1.0" + +[features] +std = [] diff --git a/src/lib.rs b/src/lib.rs index f813f88..5efcd69 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -70,6 +70,10 @@ pub fn seed_from_entropy(entropy: &[u8], password: &str) -> Result<[u8; 64], Err #[cfg(test)] mod test { use super::*; + + #[cfg(not(feature = "std"))] + use alloc::vec::Vec; + use bip39::{Language, Mnemonic}; use rustc_hex::FromHex;