Skip to main content

Namespace: codec

vc.codec

Functions

decodeCredential

decodeCredential(serializedVC): VerifiableCredential

Parameters

NameType
serializedVCBuffer

Returns

VerifiableCredential

Defined in

packages/klayr-verifiable-credentials/dist/codec/credentials.d.ts:4


decodePresentation

decodePresentation(serializedVP): VerifiablePresentation

Parameters

NameType
serializedVPBuffer

Returns

VerifiablePresentation

Defined in

packages/klayr-verifiable-credentials/dist/codec/presentation.d.ts:4


decodeProof

decodeProof(proofBuffer): Proof

Parameters

NameType
proofBufferBuffer

Returns

Proof

Defined in

packages/klayr-verifiable-credentials/dist/codec/proof.d.ts:4


encodeCredential

encodeCredential(unserializedVC): Buffer

Parameters

NameType
unserializedVCVerifiableCredential

Returns

Buffer

Defined in

packages/klayr-verifiable-credentials/dist/codec/credentials.d.ts:3


encodePresentation

encodePresentation(unserializedVP): Buffer

Parameters

NameType
unserializedVPVerifiablePresentation

Returns

Buffer

Defined in

packages/klayr-verifiable-credentials/dist/codec/presentation.d.ts:3


encodeProof

encodeProof(proof): Buffer

Parameters

NameType
proofProof

Returns

Buffer

Defined in

packages/klayr-verifiable-credentials/dist/codec/proof.d.ts:3