You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+63-63
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ To use this smart contract, you need to deploy it on the Ethereum blockchain. Yo
23
23
24
24
# Use Cases
25
25
26
-
The Paillier cryptosystem, which is homomorphic with respect to addition and multiplication, can be applied in various blockchain-based applications that require privacy-preserving computation.
26
+
The Paillier cryptosystem, which is homomorphic with respect to addition and multiplication, can be applied in various blockchain-based applications that require privacy-preserving computation.
27
27
28
28
Included is a comprehensive [DiscreteERC20](contracts/examples/DiscreteERC20.sol) contract, demonstrating the library's homomorphic properties with an Ethereum Token, preserving transaction privacy onchain.
29
29
@@ -40,26 +40,26 @@ pragma solidity ^0.8.24;
40
40
import "./Paillier.sol";
41
41
42
42
contract PrivateVoting {
43
-
Paillier public paillier;
44
-
address public owner;
45
-
BigNumber[] public encryptedVotes;
46
-
47
-
constructor(address _paillier) {
48
-
paillier = Paillier(_paillier);
49
-
owner = msg.sender;
50
-
}
51
-
52
-
function submitVote(bytes calldata vote, bytes calldata publicKey) public {
0 commit comments