pub struct HolderAuthorization {
pub version: ProtocolV1,
pub authorization: HolderAuthorizationStatement,
pub proof: SchnorrSignatureProof,
}Expand description
Holder-signed authorization.
This intentionally stays close to upstream SignedCredential { version, credential, proof }: a versioned signed claim plus a proof. The difference is
that this is a direct holder identity signature over an unblinded statement,
not an issuer PBRSA proof over a blind-issued credential.
Fields§
§version: ProtocolV1Protocol version for this shape.
Statement signed by the holder.
proof: SchnorrSignatureProofHolder signature over canonical authorization with a versioned domain
separator such as fedi-credential/holder-authorization-signature/v1\0.
Implementations§
Source§impl HolderAuthorization
impl HolderAuthorization
Sourcepub fn digest(&self) -> Result<Output<Sha256>, CredentialsError>
pub fn digest(&self) -> Result<Output<Sha256>, CredentialsError>
Compute the signature digest for this holder authorization payload.
Sourcepub fn verify(&self) -> Result<HolderAuthorizationStatement, CredentialsError>
pub fn verify(&self) -> Result<HolderAuthorizationStatement, CredentialsError>
Verify this authorization’s holder signature and return the statement.
Trait Implementations§
Source§impl Clone for HolderAuthorization
impl Clone for HolderAuthorization
Source§fn clone(&self) -> HolderAuthorization
fn clone(&self) -> HolderAuthorization
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 HolderAuthorization
impl Debug for HolderAuthorization
Source§impl<'de> Deserialize<'de> for HolderAuthorization
impl<'de> Deserialize<'de> for HolderAuthorization
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 HolderAuthorization
impl PartialEq for HolderAuthorization
Source§impl Serialize for HolderAuthorization
impl Serialize for HolderAuthorization
impl Eq for HolderAuthorization
impl StructuralPartialEq for HolderAuthorization
Auto Trait Implementations§
impl Freeze for HolderAuthorization
impl RefUnwindSafe for HolderAuthorization
impl Send for HolderAuthorization
impl Sync for HolderAuthorization
impl Unpin for HolderAuthorization
impl UnsafeUnpin for HolderAuthorization
impl UnwindSafe for HolderAuthorization
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