Struct ckb_sdk::traits::default_impls::SecpCkbRawKeySigner
source · pub struct SecpCkbRawKeySigner { /* private fields */ }Expand description
A signer use secp256k1 raw key, the id is blake160(pubkey).
Implementations§
source§impl SecpCkbRawKeySigner
impl SecpCkbRawKeySigner
pub fn new(keys: HashMap<H160, SecretKey>) -> SecpCkbRawKeySigner
pub fn new_with_secret_keys(keys: Vec<SecretKey>) -> SecpCkbRawKeySigner
pub fn add_secret_key(&mut self, key: SecretKey)
sourcepub fn new_with_ethereum_secret_keys(
keys: Vec<SecretKey>
) -> SecpCkbRawKeySigner
pub fn new_with_ethereum_secret_keys(
keys: Vec<SecretKey>
) -> SecpCkbRawKeySigner
Create SecpkRawKeySigner from secret keys for ethereum algorithm.
sourcepub fn add_ethereum_secret_key(&mut self, key: SecretKey)
pub fn add_ethereum_secret_key(&mut self, key: SecretKey)
Add a ethereum secret key
Trait Implementations§
source§impl Clone for SecpCkbRawKeySigner
impl Clone for SecpCkbRawKeySigner
source§fn clone(&self) -> SecpCkbRawKeySigner
fn clone(&self) -> SecpCkbRawKeySigner
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 moresource§impl Default for SecpCkbRawKeySigner
impl Default for SecpCkbRawKeySigner
source§fn default() -> SecpCkbRawKeySigner
fn default() -> SecpCkbRawKeySigner
Returns the “default value” for a type. Read more