Struct solana_sdk::signature::Keypair [−][src]
Implementations
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 Debug for Keypair
[src][+]
impl<T> PartialEq<T> for Keypair where
T: Signer,
[src][+]
T: Signer,
impl Signer for Keypair
[src][+]
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,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
[+]
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,