Expand description
Decentralized Trust Graph (DTG) Credentials
Modules§
- authority
- Verifying a chain of Verifiable Authority Credentials.
- create
- Builder methods for creating new entities.
- delegation
- Verifying a chain of Verifiable Delegation Credentials.
Structs§
- Authority
Grant - The
authorityobject a CredentialSubject::Authority carries. - Credential
Subject Authority - Verifiable Authority Credential (VAC) subject.
- Credential
Subject Basic - id of the credential subject only
- Credential
Subject Delegation - Delegation Credential subject
- Credential
Subject Endorsement - Endorsement Credential subject
- Credential
Subject Membership - Membership Credential subject
- Credential
SubjectR Card Deprecated - R-Card Credential subject
- Credential
Subject Witness - Witness Credential subject
- DTGCommon
- All DTG Credentials follow a common structure.
- DTGCredential
- Defined DTG Credentials
- Delegation
Grant - The
delegationobject a CredentialSubject::Delegation carries. - Witness
Context - Witness Credential Context
Enums§
- Credential
Subject - This represents all possible credential subjects The order of the enum is important as it will match on first match
- DTGCredential
Error - Errors related to DTG Credentials
- DTGCredential
Type - TDG VC Type Identifiers
- W3CVC
Version - What W3C VC Format is the credential using?
Constants§
- MAX_
JSON_ DEPTH - The deepest JSON document this library will digest, sign or verify.
Functions§
- decode_
digest_ multibase - Decodes a
digestMultibasevalue into the algorithm it names and the raw digest bytes. - digest_
json Deprecated - A credential’s digest in the superseded
sha256:<hex>encoding. - digest_
multibase_ json - The digest a DTG credential carries of another credential, computed over that credential in its wire form.
- digests_
match - Do two
digestMultibasevalues refer to the same credential? - task_
digest_ multibase_ json - The task digest of a Trust Task document, the value a credential carries as
taskDigestMultibasealongside thetaskContextthat names the document. - verify_
grant_ with_ public_ key - Verifies a grant in its wire form before it is answered: that its issuer signed it,
and that it is in force at
at.