Struct solana_sdk::signature::Keypair [−][src]
pub struct Keypair(_);
Implementations
impl Keypair
[src]
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 from_base58_string(s: &str) -> Self
[src]
pub fn to_base58_string(&self) -> String
[src]
pub fn secret(&self) -> &SecretKey
[src]
Trait Implementations
impl Signer for Keypair
[src]
impl Signer for Keypair
[src]fn pubkey(&self) -> Pubkey
[src]
Return the public key for the given keypair
fn try_pubkey(&self) -> Result<Pubkey, SignerError>
[src]
fn sign_message(&self, message: &[u8]) -> Signature
[src]
fn try_sign_message(&self, message: &[u8]) -> Result<Signature, SignerError>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Keypair
impl RefUnwindSafe for Keypair
impl UnwindSafe for Keypair
impl UnwindSafe for Keypair