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 duplicate 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
Source§impl Drop for SecpCkbRawKeySigner
impl Drop for SecpCkbRawKeySigner
Auto Trait Implementations§
impl Freeze for SecpCkbRawKeySigner
impl RefUnwindSafe for SecpCkbRawKeySigner
impl Send for SecpCkbRawKeySigner
impl Sync for SecpCkbRawKeySigner
impl Unpin for SecpCkbRawKeySigner
impl UnwindSafe for SecpCkbRawKeySigner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more