Interface: CipherInterface
did.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/dist/types/cryptography.d.ts:82
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/dist/types/cryptography.d.ts:72