Interface: CipherInterface
Properties
decrypt
• decrypt: (__namedParameters
: { jwe
: JWEDocument
; keyAgreementKey
: KeyAgreement
}) => Promise
<string
>
Type declaration
▸ («destructured»
): Promise
<string
>
Parameters
Name | Type |
---|---|
«destructured» | Object |
› jwe | JWEDocument |
› keyAgreementKey | KeyAgreement |
Returns
Promise
<string
>
Defined in
packages/klayr-decentralized-identifier/src/types/cryptography.ts:81
encrypt
• encrypt: (__namedParameters
: { data
: string
; keyResolver
: (url
: string
) => Promise
<any
> ; recipients
: { header
: { alg
: string
; kid
: string
} }[] }) => Promise
<JWEDocument
>
Type declaration
▸ («destructured»
): Promise
<JWEDocument
>
Parameters
Name | Type |
---|---|
«destructured» | Object |
› data | string |
› keyResolver | (url : string ) => Promise <any > |
› recipients | { header : { alg : string ; kid : string } }[] |
Returns
Promise
<JWEDocument
>
Defined in
packages/klayr-decentralized-identifier/src/types/cryptography.ts:72