Namespace: codec
vc.codec
Functions
decodeCredential
▸ decodeCredential(serializedVC
): VerifiableCredential
Parameters
Name | Type |
---|---|
serializedVC | Buffer |
Returns
Defined in
packages/klayr-verifiable-credentials/dist/codec/credentials.d.ts:4
decodePresentation
▸ decodePresentation(serializedVP
): VerifiablePresentation
Parameters
Name | Type |
---|---|
serializedVP | Buffer |
Returns
Defined in
packages/klayr-verifiable-credentials/dist/codec/presentation.d.ts:4
decodeProof
▸ decodeProof(proofBuffer
): Proof
Parameters
Name | Type |
---|---|
proofBuffer | Buffer |
Returns
Defined in
packages/klayr-verifiable-credentials/dist/codec/proof.d.ts:4
encodeCredential
▸ encodeCredential(unserializedVC
): Buffer
Parameters
Name | Type |
---|---|
unserializedVC | VerifiableCredential |
Returns
Buffer
Defined in
packages/klayr-verifiable-credentials/dist/codec/credentials.d.ts:3
encodePresentation
▸ encodePresentation(unserializedVP
): Buffer
Parameters
Name | Type |
---|---|
unserializedVP | VerifiablePresentation |
Returns
Buffer
Defined in
packages/klayr-verifiable-credentials/dist/codec/presentation.d.ts:3
encodeProof
▸ encodeProof(proof
): Buffer
Parameters
Name | Type |
---|---|
proof | Proof |
Returns
Buffer
Defined in
packages/klayr-verifiable-credentials/dist/codec/proof.d.ts:3