Skip to main content

Namespace: codec

did.cryptography.codec

Functions

decodeJWEDocument

decodeJWEDocument(buf): JWEDocument

Parameters

NameType
bufBuffer

Returns

JWEDocument

Defined in

packages/klayr-decentralized-identifier/dist/cryptography/codec.d.ts:8


decodePrivateKey

decodePrivateKey(multibasePrivateKey): Buffer

Parameters

NameType
multibasePrivateKeystring

Returns

Buffer

Defined in

packages/klayr-decentralized-identifier/dist/cryptography/codec.d.ts:6


decodePublicKey

decodePublicKey(multibasePublicKey): Buffer

Parameters

NameType
multibasePublicKeystring

Returns

Buffer

Defined in

packages/klayr-decentralized-identifier/dist/cryptography/codec.d.ts:4


encodeJWEDocument

encodeJWEDocument(jwe): Buffer

Parameters

NameType
jweJWEDocument

Returns

Buffer

Defined in

packages/klayr-decentralized-identifier/dist/cryptography/codec.d.ts:7


encodePrivateKey

encodePrivateKey(klayrPrivateKey): string

Parameters

NameType
klayrPrivateKeyBuffer

Returns

string

Defined in

packages/klayr-decentralized-identifier/dist/cryptography/codec.d.ts:5


encodePublicKey

encodePublicKey(klayrPublicKey): string

Parameters

NameType
klayrPublicKeyBuffer

Returns

string

Defined in

packages/klayr-decentralized-identifier/dist/cryptography/codec.d.ts:3