pub struct IdentityRevocation {
pub schema: String,
pub revocation_id: String,
pub binding_id: String,
pub public_key_hex: String,
pub reason: String,
pub revoked_at: String,
pub signature: String,
}Expand description
A self-signed revocation of an IdentityBinding. Signed by the same key it
revokes, so revocation is authoritative and non-repudiable.
Fields§
§schema: String§revocation_id: String§binding_id: StringThe vib_ being revoked.
public_key_hex: StringThe key that signs (must equal the revoked binding’s public_key_hex).
reason: String§revoked_at: String§signature: StringImplementations§
Source§impl IdentityRevocation
impl IdentityRevocation
pub fn build( draft: IdentityRevocationDraft, key: &SigningKey, ) -> Result<Self, String>
pub fn verify(&self) -> Result<(), String>
Authoritative check: this revocation legitimately revokes binding iff it
is signed by the SAME key the binding bound. A revocation signed by any
other key is not authoritative and is ignored.
Trait Implementations§
Source§impl Clone for IdentityRevocation
impl Clone for IdentityRevocation
Source§impl Debug for IdentityRevocation
impl Debug for IdentityRevocation
Source§impl<'de> Deserialize<'de> for IdentityRevocation
impl<'de> Deserialize<'de> for IdentityRevocation
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
impl Eq for IdentityRevocation
Source§impl PartialEq for IdentityRevocation
impl PartialEq for IdentityRevocation
Source§impl Serialize for IdentityRevocation
impl Serialize for IdentityRevocation
impl StructuralPartialEq for IdentityRevocation
Auto Trait Implementations§
impl Forget for IdentityRevocation
impl Freeze for IdentityRevocation
impl Move for IdentityRevocation
impl RefUnwindSafe for IdentityRevocation
impl Send for IdentityRevocationwhere
RawVecInner: Send,
impl Sync for IdentityRevocationwhere
RawVecInner: Sync,
impl Unpin for IdentityRevocation
impl UnsafeUnpin for IdentityRevocation
impl UnwindSafe for IdentityRevocationwhere
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.