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

shared randomness for limitless prover #587

Conversation

Soleimani193
Copy link
Contributor

This PR implements the generation of shared randomness for the distributed prover.

Checklist

  • I wrote new tests for my new core changes.
  • I have successfully ran tests, style checker and build against my new changes locally.
  • I have informed the team of any breaking changes if there are any.

@Soleimani193 Soleimani193 self-assigned this Jan 21, 2025
@Soleimani193 Soleimani193 changed the title generating coins from seed shared randomness for limitless prover Jan 21, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.49%. Comparing base (fb4ee00) to head (fd837ff).

Additional details and impacted files
@@                      Coverage Diff                      @@
##             prover/limitless-top-level     #587   +/-   ##
=============================================================
  Coverage                         68.49%   68.49%           
  Complexity                         1130     1130           
=============================================================
  Files                               321      321           
  Lines                             12842    12842           
  Branches                           1287     1287           
=============================================================
  Hits                               8796     8796           
  Misses                             3506     3506           
  Partials                            540      540           
Flag Coverage Δ *Carryforward flag
hardhat 98.74% <ø> (ø)
kotlin 66.05% <ø> (ø) Carriedforward from abc95c1

*This pull request uses carry forward flags. Click here to find out more.

@Soleimani193 Soleimani193 force-pushed the prover/shared-randomness-for-limitless-prover branch from 5d2773c to df004ef Compare January 22, 2025 17:00
@Soleimani193 Soleimani193 added the Prover Tag to use for all work impacting the prover label Jan 22, 2025
@Soleimani193 Soleimani193 marked this pull request as ready for review January 22, 2025 17:02
@@ -119,7 +120,11 @@ func EvalExprColumn(run ifaces.Runtime, board symbolic.ExpressionBoard) smartvec
case ifaces.Column:
inputs[i] = m.GetColAssignment(run)
case coin.Info:
v := run.GetRandomCoinField(m.Name)
if m.Type == coin.FromSeed {
v = run.GetRandomCoinFromSeed(m.Name)
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be simpler if you modified GetRandomCoinField to be able to do that. That way you would not change this everytime we sample a coin.

@Soleimani193 Soleimani193 merged commit 07ae16a into prover/limitless-top-level Jan 24, 2025
14 of 15 checks passed
@Soleimani193 Soleimani193 deleted the prover/shared-randomness-for-limitless-prover branch January 24, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Prover Tag to use for all work impacting the prover
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants