MarcoFalke
fafb4796d3
contrib: make gen_key_io_test_vectors deterministic
...
Also, remove instructions which are redundant with the README
3 years ago
Sebastian Falbesoner
65c49ac750
test: throw `ValueError` for invalid base58 checksum
3 years ago
Sebastian Falbesoner
219d2c7ee1
contrib: testgen: use base58 methods from test framework
3 years ago
Sebastian Falbesoner
11c63e374d
contrib: testgen: import OP_* constants from test framework
3 years ago
Sebastian Falbesoner
7d755bb31c
contrib: testgen: avoid need for manually setting PYTHONPATH
3 years ago
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
3 years ago
Pieter Wuille
5c0210e3e6
bugfix: fix bech32_encode calls in gen_key_io_test_vectors.py
4 years ago
Pieter Wuille
2e7c80fb5b
Add signet support to gen_key_io_test_vectors.py
4 years ago
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.
4 years ago
MarcoFalke
fa0074e2d8
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
4 years ago
MarcoFalke
fa68755364
contrib: Fix gen_key_io_test_vectors.py imports
4 years ago
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.
4 years ago
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
```
4 years ago
Jon Layton
6aab7649d3
doc: Fix whitespace errs in .md files, bitcoin.conf, Info.plist.in, and find_bdb48.m4
5 years ago
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)
6 years ago
DrahtBot
eb7daf4d60
Update copyright headers to 2018
6 years ago
practicalswift
f020aca297
Minor Python cleanups to make flake8 pass with the new rules enabled
7 years ago
Evan Klitzke
18740586ba
Make base58 python contrib code work with python3
7 years ago
John Newbery
bc6fdf2d15
Change all python files to use Python3
7 years ago
Akira Takizawa
595a7bab23
Increment MIT Licence copyright header year on files modified in 2017
7 years ago
practicalswift
72163d4585
[tests] Remove unused and duplicate imports
8 years ago
practicalswift
ac4a095306
Remove unused Python variables
8 years ago
isle2983
27765b6403
Increment MIT Licence copyright header year on files modified in 2016
...
Edited via:
$ contrib/devtools/copyright_header.py update .
8 years ago
isle2983
783e930e68
[copyright] Add missing copyright headers
8 years ago
super3
27e2d8bfb5
Finished /Contrib Index. Standardized READMEs.
...
File and Link Fix.
11 years ago
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.
11 years ago
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`.
12 years ago