-
Notifications
You must be signed in to change notification settings - Fork 428
Addition of a circuit that checks FRI proximity proofs #321
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
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.
need to fix staticcheck errors + would have been nicer to have 3 separate PRs :-)
@@ -108,12 +104,28 @@ func (circuit *Circuit) postInit(api frontend.API) error { | |||
circuit.Transfers[i].SenderPubKey = circuit.PublicKeysSender[i] | |||
circuit.Transfers[i].ReceiverPubKey = circuit.PublicKeysReceiver[i] | |||
|
|||
// allocate the slices for the Merkle proofs | |||
// circuit.allocateSlicesMerkleProofs() |
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.
why is this commented?
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.
Allocating the slices for the Merkle proof is only necessary when creating the full circuit and not for testing sub circuits
@@ -195,6 +213,7 @@ func TestCircuitUpdateAccount(t *testing.T) { | |||
assert := test.NewAssert(t) | |||
|
|||
var updateAccountCircuit circuitUpdateAccount | |||
(*Circuit)(&updateAccountCircuit).allocateSlicesMerkleProofs() |
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.
why the cast?
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.
type circuitUpdateAccount
inherits the fields but not the methods of Circuit
👍 just staticcheck linter to fix and is good to merge |
a8db486
to
92c57e6
Compare
@ThomasPiellard did a force push on that one, gnark-crypto update was done in another branch 👍 |
std/commitments/fri/
. The verification circuit checks radix-2 fri proximity proof as formatted in gnark-crypto. In particular, Fiat Shamir in gnark-crypto, when used with fri, has been modified so that the challenges seen as string outside a circuit and as frontend.Variable inside of the circuit match.