Namespace: codec
did.cryptography.codec
Functions
decodeJWEDocument
▸ decodeJWEDocument(buf
): JWEDocument
Parameters
Name | Type |
---|---|
buf | Buffer |
Returns
Defined in
packages/klayr-decentralized-identifier/dist/cryptography/codec.d.ts:8
decodePrivateKey
▸ decodePrivateKey(multibasePrivateKey
): Buffer
Parameters
Name | Type |
---|---|
multibasePrivateKey | string |
Returns
Buffer
Defined in
packages/klayr-decentralized-identifier/dist/cryptography/codec.d.ts:6
decodePublicKey
▸ decodePublicKey(multibasePublicKey
): Buffer
Parameters
Name | Type |
---|---|
multibasePublicKey | string |
Returns
Buffer
Defined in
packages/klayr-decentralized-identifier/dist/cryptography/codec.d.ts:4
encodeJWEDocument
▸ encodeJWEDocument(jwe
): Buffer
Parameters
Name | Type |
---|---|
jwe | JWEDocument |
Returns
Buffer
Defined in
packages/klayr-decentralized-identifier/dist/cryptography/codec.d.ts:7
encodePrivateKey
▸ encodePrivateKey(klayrPrivateKey
): string
Parameters
Name | Type |
---|---|
klayrPrivateKey | Buffer |
Returns
string
Defined in
packages/klayr-decentralized-identifier/dist/cryptography/codec.d.ts:5
encodePublicKey
▸ encodePublicKey(klayrPublicKey
): string
Parameters
Name | Type |
---|---|
klayrPublicKey | Buffer |
Returns
string
Defined in
packages/klayr-decentralized-identifier/dist/cryptography/codec.d.ts:3