Skip to main content

Interface: CipherInterface

Properties

decrypt

decrypt: (__namedParameters: { jwe: JWEDocument ; keyAgreementKey: KeyAgreement }) => Promise<string>

Type declaration

▸ («destructured»): Promise<string>

Parameters
NameType
«destructured»Object
› jweJWEDocument
› keyAgreementKeyKeyAgreement
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
NameType
«destructured»Object
› datastring
› 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