From fb0fab988dc2d388fafe000a32bac879a5d7d83e Mon Sep 17 00:00:00 2001 From: Denis Varlakov Date: Fri, 15 Dec 2023 11:27:11 +0000 Subject: [PATCH] Update docs --- src/lib.rs | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ccf9eff..cc7903e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,10 +27,7 @@ //! use slip10::supported_curves::Secp256k1; //! //! let seed = b"16-64 bytes of high entropy".as_slice(); -//! let master_key = slip10::derive_master_key::( -//! slip10::CurveType::Secp256k1, -//! seed, -//! )?; +//! let master_key = slip10::derive_master_key::(seed)?; //! let master_key_pair = slip10::ExtendedKeyPair::from(master_key); //! //! let derivation_path = [1 + slip10::H, 10]; @@ -79,10 +76,7 @@ type HmacSha512 = hmac::Hmac; /// use slip10::supported_curves::Secp256k1; /// /// # let seed = b"do not use this seed in prod :)".as_slice(); -/// let master_key = slip10::derive_master_key::( -/// slip10::CurveType::Secp256k1, -/// seed, -/// )?; +/// let master_key = slip10::derive_master_key::(seed)?; /// let master_key_pair = slip10::ExtendedKeyPair::from(master_key); /// /// let hardened_child = slip10::derive_child_key_pair( @@ -335,10 +329,7 @@ pub fn derive_master_key_with_curve_tag( /// use slip10::supported_curves::Secp256k1; /// /// # let seed = b"do not use this seed :)".as_slice(); -/// let master_key = slip10::derive_master_key::( -/// slip10::CurveType::Secp256k1, -/// seed, -/// )?; +/// let master_key = slip10::derive_master_key::(seed)?; /// let master_key_pair = slip10::ExtendedKeyPair::from(master_key); /// /// let derived_key = slip10::derive_child_key_pair( @@ -375,10 +366,7 @@ pub fn derive_child_key_pair( /// use slip10::supported_curves::Secp256k1; /// /// # let seed = b"do not use this seed :)".as_slice(); -/// let master_key = slip10::derive_master_key::( -/// slip10::CurveType::Secp256k1, -/// seed, -/// )?; +/// let master_key = slip10::derive_master_key::(seed)?; /// let master_public_key = slip10::ExtendedPublicKey::from(&master_key); /// /// let derived_key = slip10::derive_child_public_key(