Namespace: Encryption
Table of contents
Functions
Functions
decrypt
▸ decrypt(__namedParameters
, privateKey
): Field
[]
Decrypts a CipherText using a PrivateKey.^
Parameters
Name | Type |
---|---|
__namedParameters | 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 |