Expand description
Decentralized Trust Graph (DTG) Credentials
Re-exports§
pub use accept::AcceptListEntry;pub use accept::AdditionalMember;pub use accept::PredicateAcceptList;pub use accept::PredicateStatus;pub use accept::RegistryAcceptList;pub use statement::CredentialSubjectStatement;pub use statement::ENDORSES_V1;pub use statement::ObjectKind;pub use statement::PRESENTED_V1;pub use statement::PredicateProfile;pub use statement::StatementObject;pub use statement::VETTED_V1;pub use statement::WITNESSED_V1;pub use statement::check_predicate_iri;
Modules§
- accept
- Which predicates a verifier accepts: the configuration that turns a well-formed VSC into a meaningful one.
- authority
- Verifying a chain of Verifiable Authority Credentials.
- create
- Builder methods for creating new entities.
- delegation
- Verifying a chain of Verifiable Delegation Credentials.
- statement
- Verifiable Statement Credentials (VSC): one type, many predicates.
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 Membership - Membership Credential subject
- DTGCommon
- All DTG Credentials follow a common structure.
- DTGCredential
- Defined DTG Credentials
- Delegation
Grant - The
delegationobject a CredentialSubject::Delegation carries. - Witness
Context - The
witnessContexta WITNESSED_V1 statement MAY carry: context of the witnessing event.
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 - DTG VC Type Identifiers — the concrete
DTGCredentialsubtypes the v1 context defines. - Issuer
Scope - The correlation scope an issuer declares for its own identifier, carried as the
REQUIRED top-level
issuerScopeof every DTG credential (DTG Core Credentials §Correlation Scope). - W3CVC
Version - What W3C VC Format is the credential using?
Constants§
- DTG_
CONTEXT_ V1 - The frozen DTG credential context, version 1, which a DTG credential lists second.
- MAX_
JSON_ DEPTH - The deepest JSON document this library will digest, sign or verify.
- W3C_
VC_ V1_ CONTEXT - The W3C VC Data Model 1.1 context, accepted in first position under DTG Core Credentials §Legacy System Compatibility. This library never emits it.
- W3C_
VC_ V2_ CONTEXT - The W3C VC Data Model 2.0 context, which a DTG credential lists first.
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.