Struct ckb_signer::MasterPrivKey
source · pub struct MasterPrivKey { /* private fields */ }Implementations§
source§impl MasterPrivKey
impl MasterPrivKey
pub fn try_new(time: u16) -> Result<MasterPrivKey, Error>
pub fn from_secp_key(secp_secret_key: &SecretKey) -> MasterPrivKey
pub fn from_bytes(bytes: [u8; 64]) -> Result<MasterPrivKey, Error>
pub fn to_bytes(&self) -> [u8; 64]
pub fn sign<P>(&self, message: &H256, path: &P) -> Signaturewhere
P: AsRef<[ChildNumber]>,
pub fn sign_recoverable<P>(
&self,
message: &H256,
path: &P
) -> RecoverableSignaturewhere
P: AsRef<[ChildNumber]>,
pub fn extended_pubkey<P>(&self, path: &P) -> ExtendedPubKeywhere
P: AsRef<[ChildNumber]>,
pub fn ckb_root(&self) -> CkbRoot
pub fn hash160<P>(&self, path: &P) -> H160where
P: AsRef<[ChildNumber]>,
Trait Implementations§
source§impl Clone for MasterPrivKey
impl Clone for MasterPrivKey
source§fn clone(&self) -> MasterPrivKey
fn clone(&self) -> MasterPrivKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more