Struct solana_sdk::signer::keypair::Keypair [−][src]
pub struct Keypair(_);
Expand description
A vanilla Ed25519 key pair
Implementations
Constructs a new, random Keypair
using a caller-proveded RNG
Recovers a Keypair
from a byte array
Recovers a Keypair
from a base58-encoded string
Returns this Keypair
as a base58-encoded string
Trait Implementations
The type that holds the reference to Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
Recover a Self::Anchor
from Self::Abi
. Read more
Infallibly gets the implementor’s public key. Returns the all-zeros
Pubkey
if the implementor has none. Read more
Fallibly gets the implementor’s public key
Infallibly produces an Ed25519 signature over the provided message
bytes. Returns the all-zeros Signature
if signing is not possible. Read more
Fallibly produces an Ed25519 signature over the provided message
bytes.
Whether the impelmentation requires user interaction to sign