bip0032 0.1.0

Another Rust implementation of BIP-0032 standard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Backend implementations for NIST P-256.

use crate::curve::{CurvePrivateKey, CurvePublicKey, TweakableKey};

/// NIST P-256 backend interface.
pub trait Nist256p1Backend {
    /// Backend-specific public key type.
    type PublicKey: CurvePublicKey<Bytes = [u8; 33]> + TweakableKey;
    /// Backend-specific private key type.
    type PrivateKey: CurvePrivateKey<Bytes = [u8; 32], PublicKey = Self::PublicKey> + TweakableKey;
}

#[cfg(feature = "p256")]
mod p256;

#[cfg(feature = "p256")]
pub use self::p256::P256Backend;