pub fn from_private<C: secp256k1::Signing>(secp: &Secp256k1<C>, sk: &ExtendedPrivKey) -> ExtendedPubKey {
        ExtendedPubKey {
            network: sk.network,
            depth: sk.depth,
            parent_fingerprint: sk.parent_fingerprint,
            child_number: sk.child_number,
            public_key: PublicKey::from_private_key(secp, &sk.private_key),
            chain_code: sk.chain_code
        }
    }
/// Derives a public key from a private key
Derives a public key from a private key
Derives a public key from a private key
pub fn from_private<C: secp256k1::Signing>(secp: &Secp256k1<C>, sk: &ExtendedPrivKey) -> ExtendedPubKey {
        ExtendedPubKey {
            network: sk.network,
            depth: sk.depth,
            parent_fingerprint: sk.parent_fingerprint,
            child_number: sk.child_number,
            public_key: PublicKey::from_private_key(secp, &sk.private_key),
            chain_code: sk.chain_code
        }
    }
pub fn from_private < C : secp256k1 :: Signing > ( secp : & Secp256k1 < C > , sk : & ExtendedPrivKey ) -> ExtendedPubKey { ExtendedPubKey { network : sk . network , depth : sk . depth , parent_fingerprint : sk . parent_fingerprint , child_number : sk . child_number , public_key : PublicKey :: from_private_key ( secp , & sk . private_key ) , chain_code : sk . chain_code } }
Derives a public key from a private key
Derives a public key from a private key
secp
&Secp256k1<C>
sk
&ExtendedPrivKey
secp
&Secp256k1<C>
sk
&ExtendedPrivKey