pub struct Ed25519Backend { /* private fields */ }Expand description
Ed25519 SigningBackend wrapping the historical Keypair.
Always available regardless of feature flags.
Implementations§
Source§impl Ed25519Backend
impl Ed25519Backend
Sourcepub fn new(keypair: Keypair) -> Ed25519Backend
pub fn new(keypair: Keypair) -> Ed25519Backend
Construct from an existing keypair.
Sourcepub fn generate() -> Ed25519Backend
pub fn generate() -> Ed25519Backend
Generate a fresh Ed25519 keypair.
Trait Implementations§
Source§impl Clone for Ed25519Backend
impl Clone for Ed25519Backend
Source§fn clone(&self) -> Ed25519Backend
fn clone(&self) -> Ed25519Backend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl SigningBackend for Ed25519Backend
impl SigningBackend for Ed25519Backend
Source§fn algorithm(&self) -> SigningAlgorithm
fn algorithm(&self) -> SigningAlgorithm
Algorithm this backend produces.
Source§fn public_key(&self) -> PublicKey
fn public_key(&self) -> PublicKey
Public half of this backend’s signing identity.
Auto Trait Implementations§
impl Freeze for Ed25519Backend
impl RefUnwindSafe for Ed25519Backend
impl Send for Ed25519Backend
impl Sync for Ed25519Backend
impl Unpin for Ed25519Backend
impl UnsafeUnpin for Ed25519Backend
impl UnwindSafe for Ed25519Backend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more