mirror of https://github.com/zcash/zip32.git
commit
9ed8d60b2e
|
@ -7,6 +7,11 @@ and this library adheres to Rust's notion of
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.1.3] - 2024-12-13
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Disabled default features of dependencies to fix no-std support.
|
||||||
|
|
||||||
## [0.1.2] - 2024-10-22
|
## [0.1.2] - 2024-10-22
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -39,9 +39,9 @@ checksum = "21a53c0a4d288377e7415b53dcfc3c04da5cdc2cc95c8d5ac178b58f0b861ad6"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "memuse"
|
name = "memuse"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "2145869435ace5ea6ea3d35f59be559317ec9a0d04e1812d5f185a87b6d36f1a"
|
checksum = "3d97bbf43eb4f088f8ca469930cde17fa036207c9a5e02ccc5107c4e8b17c964"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "subtle"
|
name = "subtle"
|
||||||
|
@ -60,7 +60,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zip32"
|
name = "zip32"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"assert_matches",
|
"assert_matches",
|
||||||
"blake2b_simd",
|
"blake2b_simd",
|
||||||
|
|
10
Cargo.toml
10
Cargo.toml
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "zip32"
|
name = "zip32"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
authors = [
|
authors = [
|
||||||
"Jack Grigg <jack@electriccoin.co>",
|
"Jack Grigg <jack@electriccoin.co>",
|
||||||
"Kris Nuttycombe <kris@electriccoin.co>",
|
"Kris Nuttycombe <kris@electriccoin.co>",
|
||||||
|
@ -14,9 +14,9 @@ edition = "2021"
|
||||||
rust-version = "1.60"
|
rust-version = "1.60"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
blake2b_simd = "1"
|
blake2b_simd = { version = "1", default-features = false }
|
||||||
memuse = "0.2.1"
|
memuse = { version = "0.2.2", default-features = false }
|
||||||
subtle = "2.2.3"
|
subtle = { version = "2.2.3", default-features = false }
|
||||||
zcash_spec = "0.1.2"
|
zcash_spec = "0.1.2"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
@ -24,4 +24,4 @@ assert_matches = "1.5"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = []
|
std = ["memuse/std"]
|
||||||
|
|
|
@ -257,7 +257,7 @@ mod tests {
|
||||||
.path
|
.path
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|i| ChildIndex::from_index(*i).expect("hardened"))
|
.map(|i| ChildIndex::from_index(*i).expect("hardened"))
|
||||||
.collect::<std::vec::Vec<_>>();
|
.collect::<alloc::vec::Vec<_>>();
|
||||||
assert_eq!(&full_path[..i], &path);
|
assert_eq!(&full_path[..i], &path);
|
||||||
|
|
||||||
// The derived master key should be identical to the key at the empty path.
|
// The derived master key should be identical to the key at the empty path.
|
||||||
|
|
|
@ -88,8 +88,8 @@ fn test_seed_fingerprint() {
|
||||||
let fp = SeedFingerprint::from_seed(&tv.root_seed).expect("root_seed has valid length");
|
let fp = SeedFingerprint::from_seed(&tv.root_seed).expect("root_seed has valid length");
|
||||||
assert_eq!(&fp.to_bytes(), &tv.fingerprint[..]);
|
assert_eq!(&fp.to_bytes(), &tv.fingerprint[..]);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
std::format!("{:?}", fp),
|
alloc::format!("{:?}", fp),
|
||||||
std::format!("SeedFingerprint({})", tv.fingerprint_str)
|
alloc::format!("SeedFingerprint({})", tv.fingerprint_str)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
#![deny(unsafe_code)]
|
#![deny(unsafe_code)]
|
||||||
#![deny(rustdoc::broken_intra_doc_links)]
|
#![deny(rustdoc::broken_intra_doc_links)]
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
extern crate alloc;
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
extern crate std;
|
extern crate std;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue