Struct cita_secp256k1::KeyPair
source · [−]pub struct KeyPair { /* private fields */ }
Expand description
key pair
Trait Implementations
sourceimpl CreateKey for KeyPair
impl CreateKey for KeyPair
sourcefn from_privkey(privkey: Self::PrivKey) -> Result<Self, Self::Error>
fn from_privkey(privkey: Self::PrivKey) -> Result<Self, Self::Error>
Create a pair from secret key
type PrivKey = H256
type PubKey = H512
type Error = Error
type Address = H160
fn gen_keypair() -> Self
fn privkey(&self) -> &Self::PrivKey
fn pubkey(&self) -> &Self::PubKey
fn address(&self) -> Address
Auto Trait Implementations
impl RefUnwindSafe for KeyPair
impl Send for KeyPair
impl Sync for KeyPair
impl Unpin for KeyPair
impl UnwindSafe for KeyPair
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more