-
Notifications
You must be signed in to change notification settings - Fork 38.6k
scripted-diff: Regenerate key_io data deterministically #21279
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
fa034f6 to
fa29cdb
Compare
|
Requested by @Sjors here: #20861 (review) |
fa29cdb to
fab2a4a
Compare
|
tACK fab2a4a, modulo the numbers in the Also, I find it less tedious to run this from the root of the project: |
fab2a4a to
fa2fb31
Compare
|
This is generally a good idea, and we should do it. But this does still mean that changes to what is generated based on the RNG output will result in an entirely different output. E.g. adding an option to a random.choice() may cause more entropy to be extracted from the RNG, and thus cause all future data from it to be shifted. In theory this could be addresses using consistent hashing, but that's probably overkill. Concept ACK |
fa2fb31 to
fa21feb
Compare
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsNo conflicts as of last run. |
|
re-utACK fa21feb |
| PYTHONPATH=../../test/functional/test_framework ./gen_key_io_test_vectors.py valid 50 > ../../src/test/data/key_io_valid.json | ||
| PYTHONPATH=../../test/functional/test_framework ./gen_key_io_test_vectors.py invalid 50 > ../../src/test/data/key_io_invalid.json | ||
| ''' | ||
| # 2012 Wladimir J. van der Laan |
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.
@laanwj This says your name, which makes you qualified to review this? 😬
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 definitely don't remember writing this 😓
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.
Your name is removed in current master, but you are still welcome to review
fa21feb to
fa02210
Compare
Also, remove instructions which are redundant with the README
fa54903 to
11ebc98
Compare
-BEGIN VERIFY SCRIPT- ./contrib/testgen/gen_key_io_test_vectors.py valid 70 > ./src/test/data/key_io_valid.json ./contrib/testgen/gen_key_io_test_vectors.py invalid 70 > ./src/test/data/key_io_invalid.json -END VERIFY SCRIPT-
|
ACK fa506ad I get the same JSON files when running the script. There are no duplicate addresses and they all change if you modify the |
|
Tested ACK fa506ad |
No description provided.