pub struct ParsedAuthWrapper {
pub public_key: PublicKey,
pub signature: Signature,
pub scheme: SignatureScheme,
pub payload: Vec<u8>,
pub payload_digest: [u8; 32],
}
Expand description
Represents an AuthWrapper
post-parsing.
Fields§
§public_key: PublicKey
The public key associated with the signature.
signature: Signature
The signature by public key covering the payload.
scheme: SignatureScheme
The signature scheme used for signing.
payload: Vec<u8>
The payload covered by the signature.
payload_digest: [u8; 32]
The SHA256 digest of the payload.
Implementations§
Source§impl ParsedAuthWrapper
impl ParsedAuthWrapper
Sourcepub fn verify(&self) -> Result<(), VerifyError>
pub fn verify(&self) -> Result<(), VerifyError>
Verify the signature on ParsedAuthWrapper
.
Trait Implementations§
Source§impl Clone for ParsedAuthWrapper
impl Clone for ParsedAuthWrapper
Source§fn clone(&self) -> ParsedAuthWrapper
fn clone(&self) -> ParsedAuthWrapper
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 Debug for ParsedAuthWrapper
impl Debug for ParsedAuthWrapper
Source§impl PartialEq for ParsedAuthWrapper
impl PartialEq for ParsedAuthWrapper
impl Eq for ParsedAuthWrapper
impl StructuralPartialEq for ParsedAuthWrapper
Auto Trait Implementations§
impl Freeze for ParsedAuthWrapper
impl RefUnwindSafe for ParsedAuthWrapper
impl Send for ParsedAuthWrapper
impl Sync for ParsedAuthWrapper
impl Unpin for ParsedAuthWrapper
impl UnwindSafe for ParsedAuthWrapper
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