Skip to content
1 viewer
View

Credential reference

2 pages, 7 routes, 7 connections and 5 CLI commands, generated from the declarations of Credential without reading storage or running anything.

AboutCode

Code · 0 files

No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.

Pages · 3

Declared views
PageView idRoleRouteOrderParentEntityNavigation
Listcredential.indexlist/view/credential/list0Credentialin navigation
Check a certificatecredential.verifylist/view/credential/verify30Credentialin navigation
Certificatecredential.itemdetail/view/credential/{credential_id}110credential.indexCredentialhidden
3 rows

Connections · 7

Credential.Claim

Claim an earned credential — the signed-in holder only. Verifies a course completion via Course.Progress or a checked-in seat via Event.Attendance (never trusts the caller), seals the record, mints the holder one unit of the credential's asset, and best-effort binds it to identity via Passport.Create. A repeated claim returns the stored credential.

Credential.Claim input
FieldTypeRequiredDescriptionAllowed
holder_idoptional
course_idoptional
event_idoptional
sourceoptional
source_refoptional
5 rows
Calls and output

Credential.Get

Fetch one credential by id.

Credential.Get input
FieldTypeRequiredDescriptionAllowed
credential_idrequired
1 row
Calls and output
  • Output keycredential.result
  • Classificationroute_handler
  • POST /credential/getHTTP route

Credential.Issue

Grant a credential to another account. The signed-in granter is recorded as its issuer; nobody can grant one to themselves.

Credential.Issue input
FieldTypeRequiredDescriptionAllowed
holder_idrequired
titlerequired
2 rows
Calls and output

Credential.List

List credentials: a holder's standing ones, the caller's own, or (for the issuer) those they issued.

Calls and output

Credential.Proof

A credential as a proof file anyone can check offline: the sealed fields, the seal, the issuing runtime's Ed25519 signature, and each evidence entry with its Merkle path to the sealed root.

Credential.Proof input
FieldTypeRequiredDescriptionAllowed
credential_idoptional
codeoptional
2 rows
Calls and output

Credential.Revoke

Revoke a credential — its issuer only. The record is kept and marked Revoked, and the holder's unit of its asset is burned.

Credential.Revoke input
FieldTypeRequiredDescriptionAllowed
credential_idrequired
1 row
Calls and output
  • Output keycredential.result
  • Classificationreal
  • POST /credential/revokeHTTP route

Credential.Verify

Check a credential by id or printed code: whether it stands, whether the record still matches its seal, evidence root and issuer signature, and whether the holder's wallet holds its asset.

Credential.Verify input
FieldTypeRequiredDescriptionAllowed
credential_idoptional
codeoptional
2 rows
Calls and output

CLI commands · 5

credential claim

Claim your credential for a completed course (course_id) or an attended event (event_id)

credential claim {"course_id":"course-..."}

credential issue

Grant a credential to another account (holder_id + title)

credential issue {"holder_id":"alice","title":"Workshop attendee"}

credential list

List your credentials, or one holder's standing ones

credential list {"holder_id":"alice"}
credential list
credential list {"holder_id":"alice"}

credential proof

Export a credential's proof file, checkable with scripts/verify_credential.mjs --proof

credential proof {"code":"CRE8-0000-0000-0000"}

credential verify

Check a credential by id or printed code

credential verify {"code":"CRE8-0000-0000-0000"}

Schema and data model

Declared storage and kinds. Linked kinds open their app pages.

Declared storage
Hyper vertex kinds read
Hyper vertex kinds written
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • cre8/credential
Asset namespaces minted
  • cre8/credential
Model warnings
  • No model warnings were reported.

Capabilities and dependencies

Depends on
  • Protocol

Structure review · 1

Warnings · 1