Skip to content

Homomorphic Encryption #11

@puff

Description

@puff

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

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions