-
Notifications
You must be signed in to change notification settings - Fork 48
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
refactor: decouple assignment from definition #78
Conversation
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.
Nice 👍
@th4s sry I had to make a couple changes after finding issues integrating with tlsn |
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.
👍
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.
gw
Co-authored-by: dan <[email protected]>
This PR decouples assignment of values from the definition of values, and is the first step needed to support pre-garbling circuits in the offline phase.
Changes
PrimitiveType
trait inmpz-circuits
to help statically distinguish between array values and primitives.ValueRegistry
andEncodingRegistry
toValueMemory
andEncodingMemory
Memory
trait methods, introducingassign
.ValueConfig
andValueIdConfig
structsValueId
andValueRef
intompz-garble
frommpz-core
ArrayRef
type which is a variant ofValueRef
which enforces some invariants which simplifies logic everywhere.Generator
,Evaluator
andDEAP
to accomodate these changes.