Encryption:
- Done with a function, called
encrypt(). - A user wants to encrypt their transaction,
m, to later be decrypted and executed once the condition is met. - The encrypted output will be represented by
c. - A unique
condition idwill be obtained from FairyRing.
Private Key Extraction
- Done with a function, called
extract(). - Uses
idto derive a private key for decryption,pk, to decrypt the respective encrypted transaction.
Decryption Using the Private Key
- Done with a function, called
decrypt(). - Uses encrypted transaction (ciphertext),
c, and private key for id,private key, to obtain the original transaction details,m.