• TypeScript 73.8%
  • Solidity 21.6%
  • CSS 4.2%
  • JavaScript 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-01-02 18:28:01 -05:00
contracts wip (#2) 2024-09-30 12:57:17 -05:00
deploy version diamond zero (#1) 2024-08-15 17:14:59 -05:00
scripts version diamond zero (#1) 2024-08-15 17:14:59 -05:00
tasks deps: update to latest Fhenix testnet and dependencies 2025-01-02 13:37:41 -05:00
test wip 2024-09-24 08:17:50 -05:00
utils wip 2024-09-24 08:17:50 -05:00
webapp fix: Manage page loading 2025-01-02 18:28:01 -05:00
.env.example version diamond zero (#1) 2024-08-15 17:14:59 -05:00
.gitattributes init from fhenix hardhat template 2024-06-22 15:50:56 -05:00
.gitignore towards building 2024-08-15 17:45:00 -05:00
.prettierrc wip 2024-09-19 06:02:41 -05:00
chainConfig.ts deps: update to latest Fhenix testnet and dependencies 2025-01-02 13:37:41 -05:00
covalence_prizes_description.md version diamond zero (#1) 2024-08-15 17:14:59 -05:00
fhenix_guidance.md version diamond zero (#1) 2024-08-15 17:14:59 -05:00
fleek.config.json adjust fleek slug 2024-10-01 09:04:52 -05:00
hardhat.config.ts deps: update to latest Fhenix testnet and dependencies 2025-01-02 13:37:41 -05:00
LICENSE feat: first implementation, not using fhe 2024-06-24 12:32:27 -05:00
package.json deps: update to latest Fhenix testnet and dependencies 2025-01-02 13:37:41 -05:00
pnpm-lock.yaml deps: update to latest Fhenix testnet and dependencies 2025-01-02 13:37:41 -05:00
README.md wip 2024-09-19 06:02:41 -05:00
tsconfig.json wip 2024-09-24 08:17:50 -05:00

Covalence Prizes

Covalence Prizes revolutionizes incentive mechanisms by leveraging homomorphic encryption and blockchain technology to create a decentralized, privacy-preserving prize system. This platform empowers organizations to foster innovation, align collective efforts, and distribute rewards with unprecedented transparency and fairness.

Features:

  • Decentralized prize management with homomorphic smart contracts
  • Privacy-preserving evaluations and reward allocations
  • Flexible criteria and scoring mechanisms
  • Multi-stakeholder participation (organizers, evaluators, contestants)
  • Customizable allocation strategies

What is private and how? The system employs 'selective' privacy-preservation. In particular, the evaluations and the allocation of rewards are private.

Use it

Development quick start

Prerequisites: Node.js, pnpm, Hardhat

git clone https://github.com/CovalenceNetwork/covalence-prizes.git
cd covalence-prizes
cp .env.example .env.local
pnpm install
pnpm compile
pnpm test

System notes

  • Diamond pattern, with AppStorage pattern

Flow

  • Create a prize
  • Fund it

Current limitations

  • Organizer introduces centralization risk - it's possible to replace some parts of it with social choice
  • The 'optimal' system parameters haven't been found, e.g. batch sizes, etc.

Development notes

We're developping directly on testnet because fhenix's local devnet didn't work for us. Hardhat node doesn't work because of the FHE requirement.

p test
p deploy:testnet
cd webapp && p dev

Ideation

  • Support for non-monetary rewards
  • Support for pluggable external allocation strategies
  • Prize as private fractional NFT
  • Constestant disqualification
  • ACL for prize creation, e.g. requiring magic link login
  • Prize pausability, and overall system pausability
  • Non-linear lifecycle, e.g. to support reverts based on errors or disputes
  • Oracles
  • Document upgrade process
  • Cancel and refund prize
  • React library to integrate easily into another front-end

License

MIT License. See LICENSE file.