pub struct HolderAuthorizationStatement {
pub holder_id_pubkey: HolderId,
pub subject_pubkey: SubjectPubkey,
pub credential_digest: CredentialDigest,
pub issued_at: Timestamp,
}Expand description
Unsigned statement authorizing an auxiliary public key to present credentials.
Fields§
§holder_id_pubkey: HolderIdThe holder making the authorization.
subject_pubkey: SubjectPubkeyThe auxiliary key or actor that the holder authorizes.
credential_digest: CredentialDigestCredential digest this authorization grants the subject permission to present.
issued_at: TimestampUnix timestamp in seconds.
Implementations§
Source§impl HolderAuthorizationStatement
impl HolderAuthorizationStatement
Sourcepub fn digest(&self) -> Result<Output<Sha256>, CredentialsError>
pub fn digest(&self) -> Result<Output<Sha256>, CredentialsError>
Compute the signature digest for this holder authorization statement.
Trait Implementations§
Source§impl Clone for HolderAuthorizationStatement
impl Clone for HolderAuthorizationStatement
Source§fn clone(&self) -> HolderAuthorizationStatement
fn clone(&self) -> HolderAuthorizationStatement
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 HolderAuthorizationStatement
impl Debug for HolderAuthorizationStatement
Source§impl<'de> Deserialize<'de> for HolderAuthorizationStatement
impl<'de> Deserialize<'de> for HolderAuthorizationStatement
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 HolderAuthorizationStatement
impl PartialEq for HolderAuthorizationStatement
Source§fn eq(&self, other: &HolderAuthorizationStatement) -> bool
fn eq(&self, other: &HolderAuthorizationStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HolderAuthorizationStatement
impl StructuralPartialEq for HolderAuthorizationStatement
Auto Trait Implementations§
impl Freeze for HolderAuthorizationStatement
impl RefUnwindSafe for HolderAuthorizationStatement
impl Send for HolderAuthorizationStatement
impl Sync for HolderAuthorizationStatement
impl Unpin for HolderAuthorizationStatement
impl UnsafeUnpin for HolderAuthorizationStatement
impl UnwindSafe for HolderAuthorizationStatement
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