pub struct Credential<'a> {
pub issuer_pk: PublicKey<'a>,
pub signature: Signature<'a>,
pub payload: &'a [u8],
}Expand description
One link in a serialized credential chain as it appears on the wire.
Fields§
§issuer_pk: PublicKey<'a>Public key of the identity that signed this credential.
signature: Signature<'a>ML-DSA-65 signature over payload.
payload: &'a [u8]Signed payload bytes.
Auto Trait Implementations§
impl<'a> Freeze for Credential<'a>
impl<'a> RefUnwindSafe for Credential<'a>
impl<'a> Send for Credential<'a>
impl<'a> Sync for Credential<'a>
impl<'a> Unpin for Credential<'a>
impl<'a> UnsafeUnpin for Credential<'a>
impl<'a> UnwindSafe for Credential<'a>
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