Parser.parseClaim() method
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
ParseClaim creates core.Claim object from W3CCredential
Signature:
parseClaim(credential: W3CCredential, credentialType: string, jsonSchemaBytes: Uint8Array, opts?: CoreClaimOptions): Promise<CoreClaim>;
Parameters
Parameter | Type | Description |
---|---|---|
credential | W3CCredential | Verifiable Credential |
credentialType | string | credential type that will be used as schema hash e.g. https://url-to-ld-schema.com\#AuthBJJCredential |
jsonSchemaBytes | Uint8Array | json schema bytes |
opts | CoreClaimOptions | (Optional) options to parse core claim |
Returns:
Promise<CoreClaim>
Promise<CoreClaim>