Encryption
Namespace: Encryption
Table of contents
Functions
Functions
decrypt
▸ decrypt(«destructured»
, privateKey
): Field
[]
Decrypts a CipherText using a PrivateKey.^
Parameters
Name | Type |
---|---|
«destructured» | CipherText |
privateKey | PrivateKey |
Returns
Field
[]
Defined in
encrypt
▸ encrypt(message
, otherPublicKey
): Object
Public Key Encryption, using a given array of Field elements and encrypts it using a PublicKey.
Parameters
Name | Type |
---|---|
message | Field [] |
otherPublicKey | PublicKey |
Returns
Object
Name | Type |
---|---|
cipherText | Field [] |
publicKey | Group |