pub fn derive_pub<C: secp256k1::Verification, P: AsRef<[ChildNumber]>>(
        &self,
        secp: &Secp256k1<C>,
        path: &P,
    ) -> Result<ExtendedPubKey, Error> {
        let mut pk: ExtendedPubKey = *self;
        for cnum in path.as_ref() {
            pk = pk.ckd_pub(secp, *cnum)?
        }
        Ok(pk)
    }
/// Attempts to derive an extended public key from a path.
///
/// The `path` argument can be both of type `DerivationPath` or `Vec<ChildNumber>`.
Attempts to derive an extended public key from a path.
Attempts to derive an extended public key from a path .
pub fn derive_pub<C: secp256k1::Verification, P: AsRef<[ChildNumber]>>(
        &self,
        secp: &Secp256k1<C>,
        path: &P,
    ) -> Result<ExtendedPubKey, Error> {
        let mut pk: ExtendedPubKey = *self;
        for cnum in path.as_ref() {
            pk = pk.ckd_pub(secp, *cnum)?
        }
        Ok(pk)
    }
pub fn derive_pub < C : secp256k1 :: Verification , P : AsRef < [ ChildNumber ] > > ( & self , secp : & Secp256k1 < C > , path : & P , ) -> Result < ExtendedPubKey , Error > { let mut pk : ExtendedPubKey = * self ; for cnum in path . as_ref ( ) { pk = pk . ckd_pub ( secp , * cnum ) ? } Ok ( pk ) }
Attempts to derive an extended public key from a path.
Attempts to derive an extended public key from a path .
&self
secp
&Secp256k1<C>
path
&P
&self
secp
&Secp256k1<C>
path
&P