-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: master
Are you sure you want to change the base?
Conversation
…rors and test errors.
…input-output files for example1.circuit
…rotocol circuit backend
… appropriate exceptions for commitments
Codecov ReportAttention: Patch coverage is
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. |
There was a problem hiding this 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.
...in/kotlin/io/github/aplcornell/viaduct/backends/commitment/CommitmentCircuitCodeGenerator.kt
Show resolved
Hide resolved
...in/kotlin/io/github/aplcornell/viaduct/backends/commitment/CommitmentCircuitCodeGenerator.kt
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 { |
There was a problem hiding this comment.
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).
...main/kotlin/io/github/aplcornell/viaduct/backends/cleartext/CleartextCircuitCodeGenerator.kt
Outdated
Show resolved
Hide resolved
...main/kotlin/io/github/aplcornell/viaduct/backends/cleartext/CleartextCircuitCodeGenerator.kt
Outdated
Show resolved
Hide resolved
...main/kotlin/io/github/aplcornell/viaduct/backends/cleartext/CleartextCircuitCodeGenerator.kt
Outdated
Show resolved
Hide resolved
...main/kotlin/io/github/aplcornell/viaduct/backends/cleartext/CleartextCircuitCodeGenerator.kt
Outdated
Show resolved
Hide resolved
...main/kotlin/io/github/aplcornell/viaduct/backends/cleartext/CleartextCircuitCodeGenerator.kt
Outdated
Show resolved
Hide resolved
...main/kotlin/io/github/aplcornell/viaduct/backends/cleartext/CleartextCircuitCodeGenerator.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments above.
No description provided.