Coder Social home page Coder Social logo

arcanevm's Introduction

ArcaneVM

ArcaneVM is a virtual machine that can execute instructions encrypted with Fully Homomorphic Encryption. Basically, it's a Brainfuck interpreter that can execute encrypted brainfuck code.

ArcaneVM relies on the nufhe library for its FHE implementation.

Join the chat on Matrix #arcanevm:matrix.org

About

Fully Homomorphic Encryption (FHE) is a relatively new encryption technology that allows for computations on encrypted data. This allows us not only to encrypt the inputs but also encrypt the computations themselves. The output is also encrypted and when decrypted gives the plaintext result of the computation.

This is extremely powerful for people who not only have sensitive data, but also have computations that are sensitive.

Since the program essentially has zero context on what it is computing, it has to run through every possible branch of the program. On top of this, the underlying encryption schemes that make FHE possible are very computationally expensive.

What this means in the context of ArcaneVM and Brainfuck is that the more instructions a program has, and the larger the tape that it is working with, the slower the program is going to become. This is because at every cycle, the VM has to go through every possible instruction on every possible data cell.

As a result, ArcaneVM is very very very slow.

All integers in ArcaneVM are 8 bits.

Example

Execute Brainfuck code

from arcanevm import run

run("++[>+++<-]>>", tape_size=5)

Dependencies

  • Python 3
  • PyOpenCL
  • nufhe

Build

sudo apt install python3-pyopencl

pip3 install -r requirements.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.