MarcoFalke
fafb4796d3
contrib: make gen_key_io_test_vectors deterministic
...
Also, remove instructions which are redundant with the README
2022-04-06 17:02:50 +02:00
Sebastian Falbesoner
65c49ac750
test: throw ValueError
for invalid base58 checksum
2022-04-05 20:07:33 +02:00
Sebastian Falbesoner
219d2c7ee1
contrib: testgen: use base58 methods from test framework
2022-04-05 19:52:36 +02:00
Sebastian Falbesoner
11c63e374d
contrib: testgen: import OP_* constants from test framework
2022-04-05 19:51:40 +02:00
Sebastian Falbesoner
7d755bb31c
contrib: testgen: avoid need for manually setting PYTHONPATH
2022-04-05 19:51:04 +02:00
Hennadii Stepanov
f47dda2c58
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
Commits of previous years:
* 2020: fa0074e2d8
* 2019: aaaaad6ac9
2021-12-30 19:36:57 +02:00
Pieter Wuille
5c0210e3e6
bugfix: fix bech32_encode calls in gen_key_io_test_vectors.py
2021-03-18 14:28:46 -07:00
Pieter Wuille
2e7c80fb5b
Add signet support to gen_key_io_test_vectors.py
2021-03-16 10:48:40 -07:00
Pieter Wuille
fe5e495c31
Use Bech32m encoding for v1+ segwit addresses
...
This also includes updates to the Python test framework implementation,
test vectors, and release notes.
2021-03-16 10:48:36 -07:00
MarcoFalke
fa0074e2d8
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
2020-12-31 09:45:41 +01:00
MarcoFalke
fa68755364
contrib: Fix gen_key_io_test_vectors.py imports
2020-10-16 13:48:17 +02:00
Peter Bushnell
e12e970df6
docs: match usage text to script and location
...
Update the usage text in the README to match the usage text in the Python script.
02b26ba1c1/contrib/testgen/gen_key_io_test_vectors.py (L9)
Also to match the file names in the actual destination.
02b26ba1c1/src/test/data/key_io_valid.json
02b26ba1c1/src/test/data/key_io_invalid.json
Following the README usage text generates new files when the user is likely to have wanted to update the existing files.
2020-06-21 10:31:18 +01:00
Alex Willmer
47b49a05ea
contrib: Fix SyntaxWarning in Python base58 implementation
...
In Python integers should be compared for equality (`i == j`), not identity (`i is j`). Recent versions of CPython 3.x emit a SyntaxWarning when they encounter this incorrect usage, e.g.
```
$ python3 base58.py
base58.py:110: SyntaxWarning: "is" with a literal. Did you mean "=="?
assert get_bcaddress_version('15VjRaDX9zpbA8LVnbrCAFzrVzN7ixHNsC') is 0
Tests passed
```
2020-06-15 21:36:54 +01:00
Jon Layton
6aab7649d3
doc: Fix whitespace errs in .md files, bitcoin.conf, Info.plist.in, and find_bdb48.m4
2019-09-17 03:21:22 -04:00
Akio Nakamura
a9910d82c3
contrib: Adjust output to current test format
...
Ajust the outputs of gen_base58_test_vectors.py to current test format.
1. Add bech32 vector generation.
2. Add Script-fragments to hexrepr in the format expected by the test.
3. Modify the metadata.
1) Change 'isTestnet' to 'chain' (main/test/regtest)
2) Remove 'addrType'
3) Add 'tryCaseFlip' (True/False on bech32)
2018-08-27 20:14:47 +09:00
DrahtBot
eb7daf4d60
Update copyright headers to 2018
2018-07-27 07:15:02 -04:00
practicalswift
f020aca297
Minor Python cleanups to make flake8 pass with the new rules enabled
2018-04-16 17:25:11 +02:00
Evan Klitzke
18740586ba
Make base58 python contrib code work with python3
2018-03-28 09:20:42 -04:00
John Newbery
bc6fdf2d15
Change all python files to use Python3
2018-03-26 16:49:33 -04:00
Akira Takizawa
595a7bab23
Increment MIT Licence copyright header year on files modified in 2017
2018-01-03 02:26:56 +09:00
practicalswift
72163d4585
[tests] Remove unused and duplicate imports
2017-03-22 17:49:23 +01:00
practicalswift
ac4a095306
Remove unused Python variables
2017-01-13 18:55:03 +01:00
isle2983
27765b6403
Increment MIT Licence copyright header year on files modified in 2016
...
Edited via:
$ contrib/devtools/copyright_header.py update .
2016-12-31 11:01:21 -07:00
isle2983
783e930e68
[copyright] Add missing copyright headers
2016-09-11 15:25:51 -06:00
super3
27e2d8bfb5
Finished /Contrib Index. Standardized READMEs.
...
File and Link Fix.
2013-10-15 23:37:30 -04:00
super3
0aa9851b18
Documentation Cleanup in /Doc
...
Added some help text, and bumped version numbers.
Added a Readable Index for /Contrib
Fixing /Contrib Index URLs
Revert Version Numbers.
2013-10-12 18:39:26 -04:00
Wladimir J. van der Laan
d6b13283d1
data-driven base58 CBitcoinAddress/CBitcoinSecret tests
...
Arbitrary numbers of test vectors can be generated using the script
`gen_base58_test_vectors.py`.
2012-10-01 04:57:26 +02:00