pub struct AttestationSignedFields {
pub email: String,
pub capabilities: MemberCapabilities,
pub enrollment_verifier: Option<String>,
}Expand description
The exact subset of a member’s state covered by the attestation signature. Changes to any of these fields invalidate the signature.
The serde key for enrollment_verifier is pinned to the historical
name otp_hash (per ADR-035) so signatures created before the field
rename remain bit-identically valid. Do not change the rename pin
without coordinating an attestation re-signing pass.
Fields§
§email: String§capabilities: MemberCapabilities§enrollment_verifier: Option<String>Implementations§
Source§impl AttestationSignedFields
impl AttestationSignedFields
Sourcepub fn canonical_bytes(&self) -> Vec<u8> ⓘ
pub fn canonical_bytes(&self) -> Vec<u8> ⓘ
Produce a deterministic byte sequence for signing/verification. Stability relies on: (a) BTreeMap ordering in MemberCapabilities::Specific, (b) struct field declaration order via serde_json, (c) skip-empty rules being identical on write and read.
Trait Implementations§
Source§impl Clone for AttestationSignedFields
impl Clone for AttestationSignedFields
Source§fn clone(&self) -> AttestationSignedFields
fn clone(&self) -> AttestationSignedFields
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttestationSignedFields
impl Debug for AttestationSignedFields
Source§impl<'de> Deserialize<'de> for AttestationSignedFields
impl<'de> Deserialize<'de> for AttestationSignedFields
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 AttestationSignedFields
impl PartialEq for AttestationSignedFields
Source§fn eq(&self, other: &AttestationSignedFields) -> bool
fn eq(&self, other: &AttestationSignedFields) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttestationSignedFields
impl Serialize for AttestationSignedFields
impl StructuralPartialEq for AttestationSignedFields
Auto Trait Implementations§
impl Freeze for AttestationSignedFields
impl RefUnwindSafe for AttestationSignedFields
impl Send for AttestationSignedFields
impl Sync for AttestationSignedFields
impl Unpin for AttestationSignedFields
impl UnsafeUnpin for AttestationSignedFields
impl UnwindSafe for AttestationSignedFields
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