-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib.rs
43 lines (36 loc) · 1.14 KB
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Ed25519 key handling using BIP32 style derivation
//!
//! Ed25519 is notable for its public key generation involving hashing and bit manipulations,
//! which seemingly prevents its use for BIP32. Instead this package use the ed25519 is
//! extended form (post-hashing).
//!
//! BIP32 allows derivation given a private key, of up to 2^32 children, using
//! two different derivation scheme (soft or hard).
//!
//! In soft derivation, the important property is that given the parent public key,
//! one can derive all softly derived children public key.
//!
#![allow(clippy::all)]
#![no_std]
#![feature(error_in_core)]
#![cfg_attr(feature = "with-bench", feature(test))]
#[cfg(test)]
#[macro_use]
extern crate std;
#[cfg(test)]
#[cfg(feature = "with-bench")]
extern crate test;
extern crate alloc;
mod derivation;
mod hex;
mod key;
mod securemem;
mod signature;
#[cfg(test)]
mod tests;
#[cfg(test)]
#[cfg(feature = "with-bench")]
mod bench;
pub use derivation::{DerivationError, DerivationIndex, DerivationScheme};
pub use key::{PrivateKeyError, PublicKeyError, XPrv, XPub, XPRV_SIZE, XPUB_SIZE};
pub use signature::{Signature, SignatureError, SIGNATURE_SIZE};