Halo2 circuit for verifiable encryption based of the hashed ElGamal scheme
nulltea / halo2-encryption Goto Github PK
View Code? Open in Web Editor NEWHalo2 circuit for verifiable encryption based of the hashed ElGamal scheme
Halo2 circuit for verifiable encryption based of the hashed ElGamal scheme
ran test circuit , prior added (in halo2-elgmal/examples/encrypt-block)
let prover = MockProver::run(12, &circuit, public_inputs).unwrap();
prover.assert_satisfied();
let proved = prover.verify().is_ok();
--
Running target/release/examples/encrypt-block
Equality constraint not satisfied by cell (Column { column_type: Advice, index: 1 }, in Region 2 ('witness point') at offset 0)
Equality constraint not satisfied by cell (Column { column_type: Advice, index: 12 }, in Region 6 ('c = a + b') at offset 0)
Equality constraint not satisfied by cell (Column { column_type: Instance, index: 1 }, outside any region, on row 1)
Equality constraint not satisfied by cell (Column { column_type: Instance, index: 2 }, outside any region, on row 2)
thread 'main' panicked at 'circuit was not satisfied', /Users/test/rust/src/halo2/halo2_proofs/src/dev.rs:873:13
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.