Struct noosphere_core::data::RevocationIpld
source · pub struct RevocationIpld {
pub iss: String,
pub revoke: String,
pub challenge: String,
}Expand description
See https://github.com/ucan-wg/spec#66-revocation TODO(ucan-wg/spec#112): Verify the form of this
Fields§
§iss: StringIssuer’s DID
revoke: StringJWT CID of the revoked UCAN (provisionally encoded as base64 URL-safe string)
challenge: StringIssuer’s signature of “REVOKE:{jwt_cid}”, provisionally encoded as unpadded base64 URL-safe string
Implementations§
source§impl RevocationIpld
impl RevocationIpld
sourcepub async fn verify<K: KeyMaterial + ?Sized>(
&self,
claimed_issuer: &K
) -> Result<()>
pub async fn verify<K: KeyMaterial + ?Sized>( &self, claimed_issuer: &K ) -> Result<()>
Verify that the RevocationIpld is valid compared to the public key of the issuer
Trait Implementations§
source§impl Clone for RevocationIpld
impl Clone for RevocationIpld
source§fn clone(&self) -> RevocationIpld
fn clone(&self) -> RevocationIpld
Returns a copy 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 RevocationIpld
impl Debug for RevocationIpld
source§impl<'de> Deserialize<'de> for RevocationIpld
impl<'de> Deserialize<'de> for RevocationIpld
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 Hash for RevocationIpld
impl Hash for RevocationIpld
source§impl PartialEq for RevocationIpld
impl PartialEq for RevocationIpld
source§fn eq(&self, other: &RevocationIpld) -> bool
fn eq(&self, other: &RevocationIpld) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RevocationIpld
impl Serialize for RevocationIpld
source§impl TryBundle for RevocationIpld
impl TryBundle for RevocationIpld
fn extend_bundle<'life0, 'life1, 'life2, 'async_trait, S>( &'life0 self, bundle: &'life1 mut Bundle, _store: &'life2 S ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where S: 'async_trait + BlockStore, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
fn extend_bundle_with_cid<'life0, 'life1, 'life2, 'async_trait, S>( cid: &'life0 Cid, bundle: &'life1 mut Bundle, store: &'life2 S ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where S: 'async_trait + BlockStore, Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
fn bundle<'life0, 'life1, 'async_trait, S>( &'life0 self, store: &'life1 S ) -> Pin<Box<dyn Future<Output = Result<Bundle>> + Send + 'async_trait>>where S: 'async_trait + BlockStore, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn bundle_with_cid<'life0, 'life1, 'async_trait, S>( cid: &'life0 Cid, store: &'life1 S ) -> Pin<Box<dyn Future<Output = Result<Bundle>> + Send + 'async_trait>>where S: 'async_trait + BlockStore, Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
impl Eq for RevocationIpld
impl StructuralEq for RevocationIpld
impl StructuralPartialEq for RevocationIpld
Auto Trait Implementations§
impl RefUnwindSafe for RevocationIpld
impl Send for RevocationIpld
impl Sync for RevocationIpld
impl Unpin for RevocationIpld
impl UnwindSafe for RevocationIpld
Blanket Implementations§
source§impl<T> Base64Encode for Twhere
T: DagJson,
impl<T> Base64Encode for Twhere T: DagJson,
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> DagJson for Twhere
T: Serialize + DeserializeOwned,
impl<T> DagJson for Twhere T: Serialize + DeserializeOwned,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.