[][src]Crate caelum_vcdm

Verifiable Credential Data Model

This crates implements w3's Verifiable Credential Data Model specifications. This means it will create, read, update and delete (a.k.a. CRUD) all properties of a Verifiable Credentialand a Verifiable Presentation. As well as interacting with other Verifiable Credential and Verifiable Presentation.

A Verifiable Credential or a Verifiable Presentation can represent all of the same information that a physical credential represents. The addition of technologies, such as digital signatures, makes verifiable credentials more tamper-evident and more trustworthy than their physical counterparts.

In the physical world, a credential might consist of:

  • Information related to identifying the subject of the credential (for example, a photo, name, or identification number)
  • Information related to the issuing authority (for example, a city government, national agency, or certification body)
  • Information related to the type of credential this is (for example, a Dutch passport, an American driving license, or a health insurance card)
  • Information related to specific attributes or properties being asserted by the issuing authority about the subject (for example, nationality, the classes of vehicle entitled to drive, or date of birth)
  • Evidence related to how the credential was derived
  • Information related to constraints on the credential (for example, expiration date, or terms of use).

We want to help developers create these scenarios and making it easy to interact with other following the same specifications.

Modules

claims
proofs
utils
verifiable_credential

Struct representing a verifiableCredential explained in w3's verifiable credentials data model documentation.

verifiable_presentation

Struct representing a verifiablePresentation explained in w3's verifiable credentials data model documentation.

Structs

VClaim

WebAssembly gateway for Claims

VCredential

WebAssembly gateway for Verifiable Credentials

VNonRevocationProof

WebAssembly gateway for ZenroomProofs

VPresentation

Webassembly gateway for Verifiable Presentation

VProof

WebAssembly gateway for Proofs

Functions

__wasm_bindgen_generated_create_hash

Utils interface

__wasm_bindgen_generated_create_u8a_hash
__wasm_bindgen_generated_hex_to_u8a
__wasm_bindgen_generated_u8a_to_hex
__wasm_bindgen_generated_verify_claim
create_hash

Utils interface

create_u8a_hash
hex_to_u8a
u8a_to_hex
verify_claim