This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
A random beacon #96
Merged
Merged
A random beacon #96
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
a83059a
Completely rework dispatch mechanism into something modular.
gavofyork 82a178d
Council vote tests.
gavofyork 1d28d9a
Fix tests.
gavofyork 69c88c3
whitespace.
gavofyork b12a708
Fix demo runtime tests.
gavofyork e48e86d
Merge branch 'gav-demo' into gav-dispatch
gavofyork 8e3cc51
Fix up tests.
gavofyork 53e2fdf
Merge branch 'gav-demo' into gav-dispatch
gavofyork 27ecd6f
Merge branch 'master' into gav-dispatch
gavofyork 5eca74a
Remove dead code.
gavofyork 5d5f194
Initial util code for random beacon
gavofyork 7cece3b
Merge branch 'master' into gav-dispatch
gavofyork 8c2396d
Timestamp uses new storage API.
gavofyork 6b6c240
Move over system module to new API.
gavofyork a79dab2
Much nicer storage API, moved over staking module.
gavofyork 1fd6b3e
More refactoring.
gavofyork 51b4a8c
Democracy uses new storage API.
gavofyork 8ada9f7
Council uses new RPC.
gavofyork c4f5f42
Fix more tests.
gavofyork d11f5ca
Use match for Id
gavofyork 53eb893
Merge branch 'gav-storage-revamp' into gav-random-beacon
gavofyork d228593
Generic mix.
gavofyork a90fbe3
Integrate random beacon
gavofyork d352727
Update binaries.
gavofyork 19f7258
Fixes relating to with_ext removal.
gavofyork ff2fa3c
Remove dead code.
gavofyork c674963
Rework mixer into an iterator adaptor.
gavofyork c49d8a9
Merge branch 'master' into gav-random-beacon
gavofyork 74a59b9
Link to paper.
gavofyork 23ca1b2
Algorithm cleanups
gavofyork 1bb150b
Merge and fix test.
gavofyork 2e9fa09
Docs.
gavofyork e4c2b27
Fix typo.
gavofyork 90dd1a5
rename
gavofyork f197714
Fix tests.
gavofyork File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Integrate random beacon
- Loading branch information
commit a90fbe3346a2cdd03ab12a613bb50b35401c26c9
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
so for the first 81 blocks the random seed won't be random at all -- I wonder if it's better to use a
filter_mapso that the early randomness is much more manipulable but not dominated by zero hashes. In polkadot we should have an initial epoch shuffle which ends after randomness is well-seeded.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.
it'll still be a bit random. but sure, lower security. thankfully it doesn't really matter.