pub struct ProofKeys {
pub ed25519: Option<Vec<u8>>,
pub mldsa44: Option<Vec<u8>>,
pub slhdsa128: Option<Vec<u8>>,
pub requires_post_quantum: bool,
pub requires_slhdsa128: bool,
}Expand description
The keys a DID document gives a DID for one proof (see proof_keys).
Fields§
§ed25519: Option<Vec<u8>>The Ed25519 key the proof’s Ed25519 verificationMethod names, when the document lets the DID use it for assertions.
mldsa44: Option<Vec<u8>>The ML-DSA-44 key the proof’s ML-DSA-44 verificationMethod names, the same way.
slhdsa128: Option<Vec<u8>>The SLH-DSA-SHA2-128s key the proof’s SLH-DSA verificationMethod names, the same way.
requires_post_quantum: boolThe document publishes an ML-DSA-44 assertion key, so the ML-DSA-44 proof is required.
requires_slhdsa128: boolThe document publishes an SLH-DSA-SHA2-128s assertion key, so the SLH-DSA proof is required.
Implementations§
Trait Implementations§
impl Eq for ProofKeys
impl StructuralPartialEq for ProofKeys
Auto Trait Implementations§
impl Forget for ProofKeys
impl Freeze for ProofKeys
impl Move for ProofKeys
impl RefUnwindSafe for ProofKeys
impl Send for ProofKeyswhere
RawVecInner: Send,
impl Sync for ProofKeyswhere
RawVecInner: Sync,
impl Unpin for ProofKeys
impl UnsafeUnpin for ProofKeys
impl UnwindSafe for ProofKeyswhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.