Namespace: codec
Functions
decodeCredential
▸ decodeCredential(serializedVC
): VerifiableCredential
Parameters
Name | Type |
---|---|
serializedVC | Buffer |
Returns
Defined in
klayr-verifiable-credentials/src/codec/credentials.ts:12
decodePresentation
▸ decodePresentation(serializedVP
): VerifiablePresentation
Parameters
Name | Type |
---|---|
serializedVP | Buffer |
Returns
Defined in
klayr-verifiable-credentials/src/codec/presentation.ts:12
decodeProof
▸ decodeProof(proofBuffer
): Proof
Parameters
Name | Type |
---|---|
proofBuffer | Buffer |
Returns
Defined in
klayr-verifiable-credentials/src/codec/proof.ts:38
encodeCredential
▸ encodeCredential(unserializedVC
): Buffer
Parameters
Name | Type |
---|---|
unserializedVC | VerifiableCredential |
Returns
Buffer
Defined in
klayr-verifiable-credentials/src/codec/credentials.ts:6
encodePresentation
▸ encodePresentation(unserializedVP
): Buffer
Parameters
Name | Type |
---|---|
unserializedVP | VerifiablePresentation |
Returns
Buffer
Defined in
klayr-verifiable-credentials/src/codec/presentation.ts:6
encodeProof
▸ encodeProof(proof
): Buffer
Parameters
Name | Type |
---|---|
proof | Proof |
Returns
Buffer