Function createVCContextEntry
- createVCContextEntry<V>(__namedParameters): Record<string, any>
Type Parameters
- V extends {
@context: [head: "https://www.w3.org/2018/credentials/v1"] | [head: "https://www.w3.org/2018/credentials/v1", ...args: (string | {})[]];
credentialSubject: {
id: undefined | string;
} | ResolveArr<Arr<Object<{
id: Primitive<string>;
}, never, true, Any>>>;
expirationDate: undefined | string;
holder: undefined | string | {
id: string;
type: undefined | string;
};
id: string;
issuanceDate: string;
issuer: string | {
id: string;
type: undefined | string;
};
proof: {
created: string;
jws: string;
proofPurpose: "assertionMethod";
type: string;
verificationMethod: string;
} | {
created: string;
proofPurpose: "assertionMethod";
proofValue: string;
type: string;
verificationMethod: string;
};
type: ResolveArr<Arr<Primitive<string>>>;
} & {
type: ["VerifiableCredential", string, ...string[]];
}
Parameters
- __namedParameters: {
entries: Record<string, any>[];
type: V["type"][1];
typeIdBase: "schema" | "bloomSchema" | "fhir";
vocab?: "schema" | "bloomSchema" | "fhir";
}entries: Record<string, any>[]
type: V["type"][1]
typeIdBase: "schema" | "bloomSchema" | "fhir"
Optional
vocab?: "schema" | "bloomSchema" | "fhir"
Returns Record<string, any>