Skip to main content

Namespace: Encryption

Table of contents

Functions

Functions

decrypt

decrypt(__namedParameters, privateKey): Field[]

Decrypts a CipherText using a PrivateKey.^

Parameters

NameType
__namedParametersCipherText
privateKeyPrivateKey

Returns

Field[]

Defined in

lib/encryption.ts:44


encrypt

encrypt(message, otherPublicKey): Object

Public Key Encryption, using a given array of Field elements and encrypts it using a PublicKey.

Parameters

NameType
messageField[]
otherPublicKeyPublicKey

Returns

Object

NameType
cipherTextField[]
publicKeyGroup

Defined in

lib/encryption.ts:15