fn derive<Iter: Iterator<Item=DeriveJunction>>(&self, path: Iter) -> Result<Pair, DeriveError> {
		let mut acc = self.1.clone();
		for j in path {
			match j {
				DeriveJunction::Soft(_cc) => return Err(DeriveError::SoftKeyInPath),
				DeriveJunction::Hard(cc) => acc = derive_hard_junction(&acc, &cc),
			}
		}
		Ok(Self::from_seed(acc))
	}
/// Derive a child key from a series of given junctions.
Derive a child key from a series of given junctions.
Derive a child key from a series of given junctions .
fn derive<Iter: Iterator<Item=DeriveJunction>>(&self, path: Iter) -> Result<Pair, DeriveError> {
		let mut acc = self.1.clone();
		for j in path {
			match j {
				DeriveJunction::Soft(_cc) => return Err(DeriveError::SoftKeyInPath),
				DeriveJunction::Hard(cc) => acc = derive_hard_junction(&acc, &cc),
			}
		}
		Ok(Self::from_seed(acc))
	}
fn derive < Iter : Iterator < Item = DeriveJunction > > ( & self , path : Iter ) -> Result < Pair , DeriveError > { let mut acc = self . 1 . clone ( ) ; for j in path { match j { DeriveJunction :: Soft ( _cc ) => return Err ( DeriveError :: SoftKeyInPath ) , DeriveJunction :: Hard ( cc ) => acc = derive_hard_junction ( & acc , & cc ) , } } Ok ( Self :: from_seed ( acc ) ) }
Derive a child key from a series of given junctions.
Derive a child key from a series of given junctions .
&self
path
Iter
&self
path
Iter