Namespace: codec
cryptography.codec
Functions
decodeJWEDocument
▸ decodeJWEDocument(buf
): JWEDocument
Parameters
Name | Type |
---|---|
buf | Buffer |
Returns
Defined in
packages/klayr-decentralized-identifier/src/cryptography/codec.ts:59
decodePrivateKey
▸ decodePrivateKey(multibasePrivateKey
): Buffer
Parameters
Name | Type |
---|---|
multibasePrivateKey | string |
Returns
Buffer
Defined in
packages/klayr-decentralized-identifier/src/cryptography/codec.ts:48
decodePublicKey
▸ decodePublicKey(multibasePublicKey
): Buffer
Parameters
Name | Type |
---|---|
multibasePublicKey | string |
Returns
Buffer
Defined in
packages/klayr-decentralized-identifier/src/cryptography/codec.ts:34
encodeJWEDocument
▸ encodeJWEDocument(jwe
): Buffer
Parameters
Name | Type |
---|---|
jwe | JWEDocument |
Returns
Buffer
Defined in
packages/klayr-decentralized-identifier/src/cryptography/codec.ts:55
encodePrivateKey
▸ encodePrivateKey(klayrPrivateKey
): string
Parameters
Name | Type |
---|---|
klayrPrivateKey | Buffer |
Returns
string
Defined in
packages/klayr-decentralized-identifier/src/cryptography/codec.ts:41
encodePublicKey
▸ encodePublicKey(klayrPublicKey
): string
Parameters
Name | Type |
---|---|
klayrPublicKey | Buffer |
Returns
string
Defined in
packages/klayr-decentralized-identifier/src/cryptography/codec.ts:27