-
Notifications
You must be signed in to change notification settings - Fork 58
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
Random Number Generation #2053
Merged
Merged
Random Number Generation #2053
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
556adfd
feat(rad): add RNG in retrieval RADType
lrubiorod d3a7af7
feat(rad): skipping aggregation when rng
lrubiorod bf45289
feat(rad): implement HashConcatenate reducer
lrubiorod 61c052f
feat(rad): include tapi activation for includeing RNG functionality
lrubiorod e769da5
feat(data_request): modify sorting in get_all_reveals
lrubiorod 5b92d2b
feat(rad): during RNG, ensure reveal bytes has the same lenght
lrubiorod ff41187
feat: add random_bytes.json data request example
tmpolaczyk 5115fbc
fix(tapi): include wip19 in tapi initialize test
lrubiorod 5e0cdd9
test: tally rng request
tmpolaczyk 799fb3f
refactor: improve and test hash concatenate
tmpolaczyk 9fd5df6
refactor(rad): modify HashConcatenate reducer code
lrubiorod f317060
feat(rad): add unwrap reducer
lrubiorod d6639ac
fix(rad): fix rng tally tests
lrubiorod 044c670
feat(validation): remove extra validations for rng
lrubiorod 619ae2a
feat(rad): include tapi in RadType validation
lrubiorod beeac1f
refactor(rad): remove option for active_wips
lrubiorod a29a77a
fix(tapi): fix tests after include RadType changes
lrubiorod a744726
refactor(rad): remove RadonReducers::Unwrap, using RadonReducers::Mod…
lrubiorod f8e1540
feat(rad): convert RadType from HttpGet to Unknown before WIP-0019 ac…
lrubiorod 5e35b2c
refactor: move current_active_wips and all_wips_active to mainnet_val…
lrubiorod 1b3176c
feat: apply suggestions
lrubiorod 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
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"jsonrpc":"2.0","method":"sendRequest","id":"1","params":{"dro":{"data_request":{"time_lock":0,"retrieve":[{"kind":"RNG","url":"","script":[128]}],"aggregate":{"filters":[],"reducer":2},"tally":{"filters":[],"reducer":11}},"witness_reward":1000,"witnesses":5,"commit_and_reveal_fee":10,"min_consensus_percentage":51,"collateral":1000000000},"fee":0}} |
This file contains 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
Oops, something went wrong.
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.
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.
I think
RADType::Unknown
is a good default value, the problem is that this is used in tests so any tests that want to create a "default HttpGet request" can use a helper function.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.
I think we could do a refactor in tests after WIP19 activation