-
Notifications
You must be signed in to change notification settings - Fork 0
poq and pol updates: zoneTreeDepth param, public PoL inputs, rename is_winning #78
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,7 +57,7 @@ template derive_entropy(){ | |
| out <== hash.out; | ||
| } | ||
|
|
||
| template is_winning_leadership(secret_depth){ | ||
| template would_win_leadership(secret_depth){ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add zoneTreeDepth on lines 69, 70, 78, 79 and elsewhere in this file. could be a constant somewhere
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. btw I think it's good to mention this in the specs. common ledger specs maybe? |
||
| signal input slot; | ||
| signal input epoch_nonce; | ||
| signal input t0; | ||
|
|
@@ -222,7 +222,7 @@ template proof_of_leadership(secret_depth){ | |
| signal input value; | ||
|
|
||
| // Verify the note is winning the lottery | ||
| component lottery_checker = is_winning_leadership(secret_depth); | ||
| component lottery_checker = would_win_leadership(secret_depth); | ||
| lottery_checker.slot <== slot; | ||
| lottery_checker.epoch_nonce <== epoch_nonce; | ||
| lottery_checker.t0 <== t0; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.