Struct noosphere_core::data::RevocationIpld
source · 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
sourceimpl RevocationIpld
impl RevocationIpld
pub async fn try_revoke<K: KeyMaterial>(cid: &Cid, issuer: &K) -> Result<Self>
pub async fn try_verify<K: KeyMaterial + ?Sized>(
&self,
claimed_issuer: &K
) -> Result<()>
Trait Implementations
sourceimpl Clone for RevocationIpld
impl Clone for RevocationIpld
sourcefn clone(&self) -> RevocationIpld
fn clone(&self) -> RevocationIpld
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for RevocationIpld
impl Debug for RevocationIpld
sourceimpl<'de> Deserialize<'de> for RevocationIpld
impl<'de> Deserialize<'de> for RevocationIpld
sourcefn 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
sourceimpl Hash for RevocationIpld
impl Hash for RevocationIpld
sourceimpl PartialEq<RevocationIpld> for RevocationIpld
impl PartialEq<RevocationIpld> for RevocationIpld
sourcefn eq(&self, other: &RevocationIpld) -> bool
fn eq(&self, other: &RevocationIpld) -> bool
sourceimpl Serialize for RevocationIpld
impl Serialize for RevocationIpld
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
sourceimpl<T> Base64Encode for Twhere
T: DagJson,
impl<T> Base64Encode for Twhere
T: DagJson,
fn jwt_base64_encode(&self) -> Result<String, Error>
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more