pub struct SignedRevocation {
pub version: ProtocolV1,
pub revocation: Revocation,
pub proof: RevocationProof,
}Expand description
Signed revocation wire object.
Fields§
§version: ProtocolV1§revocation: Revocation§proof: RevocationProofImplementations§
Source§impl SignedRevocation
impl SignedRevocation
Sourcepub fn digest(&self) -> Result<Output<Sha256>, CredentialsError>
pub fn digest(&self) -> Result<Output<Sha256>, CredentialsError>
Compute the signature digest for this revocation payload.
Sourcepub fn verify(&self) -> Result<Revocation, CredentialsError>
pub fn verify(&self) -> Result<Revocation, CredentialsError>
Verify this revocation’s issuer signature and return the revocation payload.
Trait Implementations§
Source§impl Clone for SignedRevocation
impl Clone for SignedRevocation
Source§fn clone(&self) -> SignedRevocation
fn clone(&self) -> SignedRevocation
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 SignedRevocation
impl Debug for SignedRevocation
Source§impl<'de> Deserialize<'de> for SignedRevocation
impl<'de> Deserialize<'de> for SignedRevocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SignedRevocation
impl PartialEq for SignedRevocation
Source§impl Serialize for SignedRevocation
impl Serialize for SignedRevocation
impl Eq for SignedRevocation
impl StructuralPartialEq for SignedRevocation
Auto Trait Implementations§
impl Freeze for SignedRevocation
impl RefUnwindSafe for SignedRevocation
impl Send for SignedRevocation
impl Sync for SignedRevocation
impl Unpin for SignedRevocation
impl UnsafeUnpin for SignedRevocation
impl UnwindSafe for SignedRevocation
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