Skip to main content

Namespace: codec

Functions​

decodeCredential​

▸ decodeCredential(serializedVC): VerifiableCredential

Parameters​

NameType
serializedVCBuffer

Returns​

VerifiableCredential

Defined in​

klayr-verifiable-credentials/src/codec/credentials.ts:12


decodePresentation​

▸ decodePresentation(serializedVP): VerifiablePresentation

Parameters​

NameType
serializedVPBuffer

Returns​

VerifiablePresentation

Defined in​

klayr-verifiable-credentials/src/codec/presentation.ts:12


decodeProof​

▸ decodeProof(proofBuffer): Proof

Parameters​

NameType
proofBufferBuffer

Returns​

Proof

Defined in​

klayr-verifiable-credentials/src/codec/proof.ts:38


encodeCredential​

▸ encodeCredential(unserializedVC): Buffer

Parameters​

NameType
unserializedVCVerifiableCredential

Returns​

Buffer

Defined in​

klayr-verifiable-credentials/src/codec/credentials.ts:6


encodePresentation​

▸ encodePresentation(unserializedVP): Buffer

Parameters​

NameType
unserializedVPVerifiablePresentation

Returns​

Buffer

Defined in​

klayr-verifiable-credentials/src/codec/presentation.ts:6


encodeProof​

▸ encodeProof(proof): Buffer

Parameters​

NameType
proofProof

Returns​

Buffer

Defined in​

klayr-verifiable-credentials/src/codec/proof.ts:33