Elekton contracts – Elekton合同区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Elekton contracts – Elekton合同区块链毕设代写 是一篇很好的国外资料

Elekton contracts

Elekton Solidity smart contracts.

Elekton contracts - Elekton合同 Elekton contracts - Elekton合同 Elekton contracts - Elekton合同 Elekton contracts - Elekton合同

Elekton is an e-voting system that uses non-interactive zero-knowledge proofs and blockchain technologies to allow users to vote anonymously in a verifiable and transparent manner. The goal of zero-knowledge proofs is for a verifier to be able to convince herself that a prover possesses knowledge of a secret parameter. In the Elekton system the verifier is a Solidity smart contract, whereas the prover is the voter, who must create a valid off-chain proof in order to send a transaction and to cast a new vote on an on-chain ballot anonymously.

In recent years zk-SNARK has aroused a lot of interest. ZCash uses it to provide a privacy-focused cryptocurrency with a strong mechanism for creating anonymous transactions and many development tools make it easy to use for the integration with other types of blockchains as well. Iden3 provides for example several tools, which are just used in the Elekton system. Circom is used to create the voting circuit, whereas SnarkJS is used to generate the proofs and export the verifier as a Solidity smart contract. The circuit requires the use of some ZK-friendly algorithms: Merkle trees, EdDSA and Poseidon. Circom actually requires a special kind of Merkle tree, the sparse Merkle tree (SMT), which can be used to create not only membership proofs, but also non-membership proofs. Elekton uses the SMT TypeScript implementation and the Circomlib JavaScript library, which provides several zk-friendly algorithm implementations.

Features

Feature Status Description
User registration ✔️ Users can register themselves in the contract.
Ballot creation ✔️ All users can create ballots.
Anonymous vote ✔️ Authorized users can cast their votes on ballots anonymously.

Table of Contents

  • ? Install
  • ? Usage
  • ? Development
    • Rules
      • Commits
      • Branches
  • ? MIT License
  • ☎️ Contacts
    • Developers

Install

With the following installed packages:

  • git
  • node
  • yarn

Clone the repo and install the dependencies from npm.

git clone https://github.com/cedoor/elekton-contracts.git cd elekton-contracts yarn

Usage

Create the snark artifacts (takes a few minutes) and test with:

yarn snark yarn test 

If you want to interact with the contracts from the outside you can create a hardhat node on http://localhost:8545, compile and deploy contracts with:

yarn start yarn compile yarn deploy 

Contacts

Developers


Elekton contracts

Elekton Solidity智能合约。Elekton是一个电子投票系统,它使用非交互式的零知识证明和区块链blockchain技术,允许用户以可验证的方式进行匿名投票透明的方式。零知识证明的目的是使验证者能够确信证明者拥有秘密参数的知识。在Elekton系统中,验证者是一个可靠的智能契约,而证明者是投票者,投票者必须创建一个有效的链外证明,才能发送一个事务并匿名地在链上选票上投下新的一票。

近年来,zk SNARK引起了人们的极大兴趣。ZCash利用它提供了一种以隐私为中心的加密货币,具有创建匿名交易的强大机制,许多开发工具也使得它易于与其他类型的区块链blockchain集成。例如,Iden3提供了几个工具,这些工具仅在Elekton系统中使用。Circom用于创建投票电路,而SnarkJS用于生成证明并将验证器导出为可靠智能合约。该电路需要使用一些ZK友好的算法:Merkle树、EdDSA和Poseidon。Circom实际上需要一种特殊的Merkle树,稀疏Merkle树(SMT),它不仅可以用来创建成员证明,还可以创建非成员证明。Elekton使用SMT TypeScript实现和Circomlib JavaScript库,后者提供了几个zk友好的算法实现。

使用以下安装的软件包:

克隆repo并从npm安装依赖项。

创建snark工件(需要几分钟)并测试:

功能

Feature Status Description
用户注册✔️ 用户可以在合同中注册。 选票创建
✔️ 所有用户都可以创建选票。 匿名投票✔️
授权用户可以匿名投票。你知道吗 ✔️ Authorized users can cast their votes on ballots anonymously.

目录

  • ? 安装? 用法? 开发规则提交分支机构? 麻省理工学院许可证☎️ 联系人开发人员开发人员git节点电子邮件:邮箱:[email protected]
  • github:@cedoor
  • 网站:https://cedoor.dev
  • ? MIT License
  • ☎️ Contacts
    • Developers

安装

如果您想从外部与契约交互,可以在上面创建一个hardhat节点http://localhost:8545,编译和部署合同,包括:

  • git
  • node
  • yarn

Clone the repo and install the dependencies from npm.

git clone https://github.com/cedoor/elekton-contracts.git cd elekton-contracts yarn

用法

Create the snark artifacts (takes a few minutes) and test with:

yarn snark yarn test 

If you want to interact with the contracts from the outside you can create a hardhat node on http://localhost:8545, compile and deploy contracts with:

yarn start yarn compile yarn deploy 

联系人

开发者

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/21377.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Elekton contracts – Elekton合同区块链毕设代写

提供最优质的资源集合

立即查看 了解详情