Skip to main content

Interface: CipherInterface

did.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/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
NameType
«destructured»Object
› datastring
› 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