Struct mundane::public::ed25519::Ed25519Signature
source · pub struct Ed25519Signature { /* private fields */ }
Expand description
An Ed25519 signature.
Implementations§
source§impl Ed25519Signature
impl Ed25519Signature
sourcepub fn from_bytes(bytes: [u8; 64]) -> Ed25519Signature
pub fn from_bytes(bytes: [u8; 64]) -> Ed25519Signature
Constructs an Ed25519Signature
signature from raw bytes.
sourcepub fn sign_ed25519(key: &Ed25519PrivKey, message: &[u8]) -> Ed25519Signature
pub fn sign_ed25519(key: &Ed25519PrivKey, message: &[u8]) -> Ed25519Signature
Trait Implementations§
source§impl Debug for Ed25519Signature
impl Debug for Ed25519Signature
source§impl Signature for Ed25519Signature
impl Signature for Ed25519Signature
source§fn sign(key: &Ed25519PrivKey, message: &[u8]) -> Result<Ed25519Signature, Error>
fn sign(key: &Ed25519PrivKey, message: &[u8]) -> Result<Ed25519Signature, Error>
Sign a message.
Though the Signature
trait requires that sign
return a Result
,
Ed25519Signature
’s implementation is guaranteed to always return Ok
.
Callers may prefer the sign_ed25519
function, which returns an
Ed25519Signature
rather than a Result
.
§type PrivateKey = Ed25519PrivKey
type PrivateKey = Ed25519PrivKey
The private key type used to generate this signature.
Auto Trait Implementations§
impl Freeze for Ed25519Signature
impl RefUnwindSafe for Ed25519Signature
impl Send for Ed25519Signature
impl Sync for Ed25519Signature
impl Unpin for Ed25519Signature
impl UnwindSafe for Ed25519Signature
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