Skip to content

revocation

Functions

  • token_id_from_event - Parse and validate the capability token ID carried by a revocation event.

firma_sidecar::authority_client::revocation::token_id_from_event

Section titled “firma_sidecar::authority_client::revocation::token_id_from_event”

Function

Parse and validate the capability token ID carried by a revocation event.

Returns an error when the protobuf string is not a canonical ctok ID.

fn token_id_from_event(event: &firma_protobuf::v1::RevocationEvent) -> Result<firma_identifiers::TokenId, String>