Skip to main content

Namespace: codec

cryptography.codec

Functions

decodeJWEDocument

decodeJWEDocument(buf): JWEDocument

Parameters

NameType
bufBuffer

Returns

JWEDocument

Defined in

packages/klayr-decentralized-identifier/src/cryptography/codec.ts:59


decodePrivateKey

decodePrivateKey(multibasePrivateKey): Buffer

Parameters

NameType
multibasePrivateKeystring

Returns

Buffer

Defined in

packages/klayr-decentralized-identifier/src/cryptography/codec.ts:48


decodePublicKey

decodePublicKey(multibasePublicKey): Buffer

Parameters

NameType
multibasePublicKeystring

Returns

Buffer

Defined in

packages/klayr-decentralized-identifier/src/cryptography/codec.ts:34


encodeJWEDocument

encodeJWEDocument(jwe): Buffer

Parameters

NameType
jweJWEDocument

Returns

Buffer

Defined in

packages/klayr-decentralized-identifier/src/cryptography/codec.ts:55


encodePrivateKey

encodePrivateKey(klayrPrivateKey): string

Parameters

NameType
klayrPrivateKeyBuffer

Returns

string

Defined in

packages/klayr-decentralized-identifier/src/cryptography/codec.ts:41


encodePublicKey

encodePublicKey(klayrPublicKey): string

Parameters

NameType
klayrPublicKeyBuffer

Returns

string

Defined in

packages/klayr-decentralized-identifier/src/cryptography/codec.ts:27