#[repr(C)]pub struct Signature {
pub(crate) R: [u8; 32],
pub(crate) s: [u8; 32],
}Expand description
Ed25519 signature.
This type represents a container for the byte serialization of an Ed25519 signature, and does not necessarily represent well-formed field or curve elements.
Signature verification libraries are expected to reject invalid field elements at the time a signature is verified.
Fields§
§R: [u8; 32]§s: [u8; 32]Implementations§
Source§impl Signature
impl Signature
Trait Implementations§
Source§impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature pkcs8 only.
impl AssociatedAlgorithmIdentifier for Signature
Available on crate feature
pkcs8 only.Source§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs8::ALGORITHM_ID
AlgorithmIdentifier for this structure.Source§impl From<InternalSignature> for Signature
impl From<InternalSignature> for Signature
Source§fn from(sig: InternalSignature) -> Signature
fn from(sig: InternalSignature) -> Signature
Converts to this type from the input type.
Source§impl FromStr for Signature
Decode a signature from hexadecimal.
impl FromStr for Signature
Decode a signature from hexadecimal.
Upper and lower case hexadecimal are both accepted, however mixed case is rejected.
Source§impl MultipartSigner<Signature> for SigningKey
impl MultipartSigner<Signature> for SigningKey
Source§fn try_multipart_sign(
&self,
message: &[&[u8]],
) -> Result<Signature, SignatureError>
fn try_multipart_sign( &self, message: &[&[u8]], ) -> Result<Signature, SignatureError>
Equivalent of
Signer::try_sign() but the message is provided in non-contiguous byte
slices. Read moreSource§fn multipart_sign(&self, msg: &[&[u8]]) -> S
fn multipart_sign(&self, msg: &[&[u8]]) -> S
Equivalent of
Signer::sign() but the message is provided in non-contiguous byte slices.Source§impl MultipartVerifier<Signature> for SigningKey
impl MultipartVerifier<Signature> for SigningKey
Source§fn multipart_verify(
&self,
message: &[&[u8]],
signature: &Signature,
) -> Result<(), SignatureError>
fn multipart_verify( &self, message: &[&[u8]], signature: &Signature, ) -> Result<(), SignatureError>
Equivalent of
Verifier::verify() but the message is provided in non-contiguous byte
slices. Read moreSource§impl MultipartVerifier<Signature> for VerifyingKey
impl MultipartVerifier<Signature> for VerifyingKey
Source§fn multipart_verify(
&self,
message: &[&[u8]],
signature: &Signature,
) -> Result<(), SignatureError>
fn multipart_verify( &self, message: &[&[u8]], signature: &Signature, ) -> Result<(), SignatureError>
Equivalent of
Verifier::verify() but the message is provided in non-contiguous byte
slices. Read moreSource§impl SignatureBitStringEncoding for Signature
Available on crate features alloc and pkcs8 only.
impl SignatureBitStringEncoding for Signature
Available on crate features
alloc and pkcs8 only.Source§impl SignatureEncoding for Signature
impl SignatureEncoding for Signature
Source§impl Signer<Signature> for SigningKey
impl Signer<Signature> for SigningKey
Source§impl TryFrom<&Signature> for InternalSignature
impl TryFrom<&Signature> for InternalSignature
Source§impl Verifier<Signature> for SigningKey
impl Verifier<Signature> for SigningKey
Source§impl Verifier<Signature> for VerifyingKey
impl Verifier<Signature> for VerifyingKey
impl Copy for Signature
impl Eq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DynAssociatedAlgorithmIdentifier for Twhere
T: AssociatedAlgorithmIdentifier,
impl<T> DynAssociatedAlgorithmIdentifier for Twhere
T: AssociatedAlgorithmIdentifier,
Source§fn algorithm_identifier(&self) -> Result<AlgorithmIdentifier<Any>, Error>
fn algorithm_identifier(&self) -> Result<AlgorithmIdentifier<Any>, Error>
AlgorithmIdentifier for this structure. Read more