Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

adityanathan
Copy link
Collaborator

No description provided.

Copy link

codecov bot commented Sep 4, 2024

Codecov Report

Attention: 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 16 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.

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.

.idea/kotlinScripting.xml Show resolved Hide resolved
* 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