Struct rosetta_client::Signer
source · pub struct Signer { /* private fields */ }Expand description
Signer derives keys from a mnemonic.
Implementations§
source§impl Signer
impl Signer
sourcepub fn new(mnemonic: &Mnemonic, password: &str) -> Result<Self>
pub fn new(mnemonic: &Mnemonic, password: &str) -> Result<Self>
Creates a new signer from a mnemonic and password.
sourcepub fn master_key(&self, algorithm: Algorithm) -> Result<&DerivedSecretKey>
pub fn master_key(&self, algorithm: Algorithm) -> Result<&DerivedSecretKey>
Derives a master key from a mnemonic.
sourcepub fn bip44_account(
&self,
algorithm: Algorithm,
coin: u32,
account: u32
) -> Result<DerivedSecretKey>
pub fn bip44_account( &self, algorithm: Algorithm, coin: u32, account: u32 ) -> Result<DerivedSecretKey>
Derives a bip44 key from a mnemonic.