-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently, this project does not support decrypting branches encrypted with homomorphic encryption.
Here's a basic representation of how HM works in eaz:
// pretend this is virtualized code
var input = int.Parse(Console.ReadLine());
if (EncryptAsymmetric(input) == encryptedConstant)
{
// Homomorphic Encryption Start VM OpCode
var oldReader = VM.VMInstructionsReader;
VM.VMInstructionsReader = new VMInstructionsReader(decryptionKey: input);
// next instructions will be decrypted with the new key
Console.WriteLine("homomorphic encryption woah");
// Homomorphic Encryption End VM OpCode
VM.VMInstructionsReader = oldReader;
}
// next instructions will be decrypted with the original decryption key
Console.WriteLine("this uses the original instructions reader");Untested but looks like it can be nested too.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request