[−][src]Struct solana_sdk::signature::Keypair
Methods
impl Keypair
[src]
pub fn generate<R>(csprng: &mut R) -> Self where
R: CryptoRng + RngCore,
[src]
R: CryptoRng + RngCore,
pub fn new() -> Self
[src]
Return a new ED25519 keypair
pub fn from_bytes(bytes: &[u8]) -> Result<Self, SignatureError>
[src]
pub fn to_bytes(&self) -> [u8; 64]
[src]
pub fn secret(&self) -> &SecretKey
[src]
Trait Implementations
impl Debug for Keypair
[src]
impl Default for Keypair
[src]
impl KeypairUtil for Keypair
[src]
fn pubkey(&self) -> Pubkey
[src]
Return the public key for the given keypair
fn try_pubkey(&self) -> Result<Pubkey, Box<dyn Error>>
[src]
fn sign_message(&self, message: &[u8]) -> Signature
[src]
fn try_sign_message(&self, message: &[u8]) -> Result<Signature, Box<dyn Error>>
[src]
impl<T> PartialEq<T> for Keypair where
T: KeypairUtil,
[src]
T: KeypairUtil,
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> From<T> for T
[src]
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,