From f4766b316fb8850ead5c0d009a088a32cea508e5 Mon Sep 17 00:00:00 2001 From: lenkan Date: Mon, 19 Feb 2024 10:25:44 +0100 Subject: [PATCH] add comments --- src/keri/app/credentialing.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/keri/app/credentialing.ts b/src/keri/app/credentialing.ts index ba9294dc..5c76e18a 100644 --- a/src/keri/app/credentialing.ts +++ b/src/keri/app/credentialing.ts @@ -37,8 +37,17 @@ export interface CredentialFilter { } export interface CredentialSubject { + /** + * Issuee, or holder of the credential. + */ i?: string; + /** + * Timestamp of issuance. + */ dt?: string; + /** + * Privacy salt + */ u?: string; [key: string]: unknown; } @@ -46,12 +55,33 @@ export interface CredentialSubject { export interface CredentialData { v?: string; d?: string; + /** + * Privacy salt + */ u?: string; + /** + * Issuer of the credential. + */ i?: string; + /** + * Registry id. + */ ri?: string; + /** + * Schema id + */ s?: string; + /** + * Credential subject data + */ a: CredentialSubject; + /** + * Credential source section + */ e?: { [key: string]: unknown }; + /** + * Credential rules section + */ r?: { [key: string]: unknown }; }