Comments (3)
Add the lifted-ElGamal.
It will encrypt the 32 bits integer and might need the suited statistical algorithm for the decryption of the transfer value. Anyway, the lifted-ElGamal is not expensive rather than paillier.
from zero-chain.
The algorithm of Lifted-Elgamal
- Encryption
Enc(m) = (mP + r(sP), rP)
where m: message, P: the point on the curve, s: secret key, sP: public key, r: random value
- Decryption
(mP + rsP) - s(rP) = mP
m
should be 32-bits num.
- Homomorphic property
Enc(m) + Enc(m')
= (mP + rsP, rP) + (m'P + r'sP, r'P)
= ((m+m')P + (r + r')sP, (r + r')P)
= Enc(m + m')
from zero-chain.
TODO:
zero-chain/proofs/src/circuit_transfer.rs
Lines 212 to 219 in 47aaa49
from zero-chain.
Related Issues (20)
- Encode public key as SS58 format
- Better decryption
- Zeroing memory to secrets
- Add confidential fungible asset module
- Get balance as total of EncryptedBalance and PendingTransfer
- error[E0432]: unresolved import `syn::token::CustomKeyword` HOT 3
- Fix HDKD HOT 1
- Add CLI flag to show encrypted balance
- Add more tests to keyfile and file disk HOT 1
- Add transfer_from function to encrypted_balances module
- Replace prover's identity in circuit from decryption_key to proof_generation_key
- Vulnerable crate found in memoffset HOT 1
- Dependency problem HOT 1
- Implement arithmatic operations to substrate primitive types
- Add `TryFrom` traits to convert original types to zerochain primitive types
- Add zk-system module
- Define a macro of substrate primitive types
- Compiled file in repository HOT 5
- [Zero Chain Book]Found some spell missings in ZeroChian tutorial. HOT 2
- Can't debug send. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zero-chain.