SeiyaKobayashi / zkml-optimization

Optimization for on-chain private machine learning.
MIT License
13 stars 1 forks source link

Implementation of Commit-Reveal Scheme #24

Closed SeiyaKobayashi closed 1 year ago

SeiyaKobayashi commented 1 year ago

🎨 Overview

Implementation of commit-reveal scheme.

🌈 Details

  1. Implemented the following contract functions & their tests.

A. VerifierFactory contract

B. Verifier contract

  1. Implemented the following libraries.

πŸ“š References

SeiyaKobayashi commented 1 year ago

test coverage

-----------------|----------|----------|----------|----------|----------------|
File             |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
-----------------|----------|----------|----------|----------|----------------|
 src/            |      100 |      100 |    96.43 |      100 |                |
  IVerifier.sol  |      100 |      100 |      100 |      100 |                |
  Verifier.sol   |      100 |      100 |    96.43 |      100 |                |
 src/libraries/  |      100 |      100 |      100 |      100 |                |
  Bytes.sol      |      100 |      100 |      100 |      100 |                |
  Challenge.sol  |      100 |      100 |      100 |      100 |                |
  MerkleTree.sol |      100 |      100 |      100 |      100 |                |
-----------------|----------|----------|----------|----------|----------------|
All files        |      100 |      100 |    96.88 |      100 |                |
-----------------|----------|----------|----------|----------|----------------|
SeiyaKobayashi commented 1 year ago

generate one verifier contract for one model using factory pattern

Done in 5f41476730294b2ed7ee5d832172aaf584bda9cf.