mk-codec 0.3.0

Reference implementation of the Mnemonic Key (MK) backup format for engravable BIP 32 xpub backups
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Canonical `mk` test-vector corpus.
//!
//! Single source of truth: any vector addition / removal happens here.
//! Consumed by `mk-codec`'s own integration tests (`tests/vectors.rs`,
//! `tests/error_coverage.rs`, `tests/round_trip.rs`) and re-exported to
//! `mk-cli`'s `vectors` subcommand via the public API.
//!
//! Regenerated by `cargo run --bin gen_mk_vectors -- --output
//! crates/mk-codec/src/test_vectors/v0.1.json`. The pinned SHA-256
//! over the byte sequence lives at `tests/vectors.rs::VECTORS_V0_1_SHA256`.

/// The canonical v0.1 test-vector corpus as a UTF-8 JSON string.
///
/// `include_str!`-baked at compile time. Consumers may parse via
/// `serde_json::from_str` or `mk-cli`'s `vectors` subcommand emit.
pub const V0_1_JSON: &str = include_str!("v0.1.json");