pub struct IssuerAuthority {
pub version: ProtocolV1,
pub issuer: Issuer,
pub proof: SchnorrSignatureProof,
}Expand description
Signed issuer metadata used by verifiers before accepting credentials.
Fields§
§version: ProtocolV1§issuer: Issuer§proof: SchnorrSignatureProofImplementations§
Source§impl IssuerAuthority
impl IssuerAuthority
Sourcepub fn digest(&self) -> Result<Output<Sha256>, CredentialsError>
pub fn digest(&self) -> Result<Output<Sha256>, CredentialsError>
Compute the signature digest for this issuer authority payload.
Sourcepub fn verify(&self) -> Result<Issuer, CredentialsError>
pub fn verify(&self) -> Result<Issuer, CredentialsError>
Verify this issuer authority’s identity signature and return the issuer metadata.
Trait Implementations§
Source§impl Clone for IssuerAuthority
impl Clone for IssuerAuthority
Source§fn clone(&self) -> IssuerAuthority
fn clone(&self) -> IssuerAuthority
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 IssuerAuthority
impl Debug for IssuerAuthority
Source§impl<'de> Deserialize<'de> for IssuerAuthority
impl<'de> Deserialize<'de> for IssuerAuthority
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 IssuerAuthority
impl PartialEq for IssuerAuthority
Source§impl Serialize for IssuerAuthority
impl Serialize for IssuerAuthority
impl Eq for IssuerAuthority
impl StructuralPartialEq for IssuerAuthority
Auto Trait Implementations§
impl Freeze for IssuerAuthority
impl RefUnwindSafe for IssuerAuthority
impl Send for IssuerAuthority
impl Sync for IssuerAuthority
impl Unpin for IssuerAuthority
impl UnsafeUnpin for IssuerAuthority
impl UnwindSafe for IssuerAuthority
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