Skip to content

Implementation of Commitment Protocol backend for Viaduct 2.0 (Circuit IR)#795

Open
adityanathan wants to merge 15 commits intomasterfrom
circuit-commitments
Open

Implementation of Commitment Protocol backend for Viaduct 2.0 (Circuit IR)#795
adityanathan wants to merge 15 commits intomasterfrom
circuit-commitments

Conversation

@adityanathan
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

❌ Patch coverage is 74.77477% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.77%. Comparing base (26d2750) to head (4881cdb).
⚠️ Report is 24 commits behind head on master.

Files with missing lines Patch % Lines
...ackends/cleartext/CleartextCircuitCodeGenerator.kt 79.16% 7 Missing and 13 partials ⚠️
...kends/commitment/CommitmentCircuitCodeGenerator.kt 38.46% 4 Missing and 4 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #795      +/-   ##
============================================
+ Coverage     65.66%   65.77%   +0.11%     
- Complexity     1319     1338      +19     
============================================
  Files           258      259       +1     
  Lines         11018    11127     +109     
  Branches       1599     1618      +19     
============================================
+ Hits           7235     7319      +84     
- Misses         3470     3480      +10     
- Partials        313      328      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@cacay cacay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some style comments and one significant one about security.

* This is because the commitment protocol is only a storage format and not a computation protocol.
*/
class CommitmentCircuitCodeGenerator(context: CodeGeneratorContext) : AbstractCodeGenerator(context) {
override fun paramType(protocol: Protocol, sourceType: ValueType): TypeName {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this code belongs under storageType. paramType should be undefined (throw an error).

Copy link
Member

@cacay cacay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants