Socket
Book a DemoInstallSign in
Socket

gaci-contracts

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gaci-contracts

This submodule contains all the Ethereum contracts and tests for MACI.

latest
npmnpm
Version
0.0.0-ci.90b1965
Version published
Maintainers
1
Created
Source

maci-contracts

This submodule contains all the Ethereum contracts and tests for MACI.

Contracts

MACI.sol

The main contract to which all on-chain interactions should occur.

It should not contain much code besides its constructor function. Rather, it should inherit from the following contracts, each of which defines a specific class of functions:

  • Polls.sol

    • Defines all contract storage variables and constants. All data pertaining to a poll resides here.
  • DomainObjs.sol

    • Defines structs that represent domain objects.
  • External.sol

    • Defines functions that interact with external contracts (i.e. sign-up gatekeepers and voice credit oracles).
  • VoterInteractions.sol

    • Defines functions for voters (i.e. sign up and publish messages).
  • CoordinatorInteractions.sol

    • Defines functions for coordinators (i.e. process and tally votes).
  • Getters.sol

    • Defines convenience view functions, particularly those which are more complex than reading a single variable.

crypto/

Contracts with cryptographic functions including hash functions.

trees/

Merkle tree contracts.

verifiers/

zk-SNARK verifier contracts.

tally/

Contracts with convenience functions for tally verification.

testing/

Contracts with testing and gas benchmark functions only for development purposes.

FAQs

Package last updated on 16 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.