pub struct BytesSigner { /* private fields */ }Expand description
In-memory Ed25519 signer. Secret material is zeroized on drop.
Implementations§
Source§impl BytesSigner
impl BytesSigner
pub fn from_secret(secret: [u8; 32]) -> Self
pub fn from_keypair(keypair: &[u8; 64]) -> Result<Self, OrderError>
Trait Implementations§
Source§impl Clone for BytesSigner
impl Clone for BytesSigner
Source§impl SignerLike for BytesSigner
impl SignerLike for BytesSigner
fn pubkey_bytes(&self) -> [u8; 32]
fn sign_message(&self, msg: &[u8]) -> [u8; 64]
fn pubkey_base58(&self) -> String
fn sign_message_base58(&self, msg: &[u8]) -> String
Source§impl Zeroize for BytesSigner
impl Zeroize for BytesSigner
impl ZeroizeOnDrop for BytesSigner
Auto Trait Implementations§
impl Forget for BytesSigner
impl Freeze for BytesSigner
impl RefUnwindSafe for BytesSigner
impl Send for BytesSigner
impl Sync for BytesSigner
impl Unpin for BytesSigner
impl UnsafeUnpin for BytesSigner
impl UnwindSafe for BytesSigner
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more