Function indyrs::anoncreds::to_unqualified
source · [−]Expand description
Get unqualified form (short form without method) of a fully qualified entity like DID.
This function should be used to the proper casting of fully qualified entity to unqualified form in the following cases: Issuer, which works with fully qualified identifiers, creates a Credential Offer for Prover, which doesn’t support fully qualified identifiers. Verifier prepares a Proof Request based on fully qualified identifiers or Prover, which doesn’t support fully qualified identifiers. another case when casting to unqualified form needed
Arguments
entity
: target entity to disqualify. Can be one of: Did SchemaId CredentialDefinitionId RevocationRegistryId Schema CredentialDefinition RevocationRegistryDefinition CredentialOffer CredentialRequest ProofRequest
Returns
res
: entity either in unqualified form or original if casting isn’t possible