MarcoFalke
fa0ceae970
test: Fix utxo set hash serialisation signedness
9 months ago
Andrew Chow
962ea5c525
Merge bitcoin/bitcoin#28374 : test: python cryptography required for BIP 324 functional tests
...
c534c08710
[test/crypto] Add FSChaCha20Poly1305 AEAD python implementation (stratospher)
c2a458f1c2
[test/crypto] Add FSChaCha20 python implementation (stratospher)
c4ea5f6288
[test/crypto] Add RFC 8439's ChaCha20Poly1305 AEAD (stratospher)
9fc6e0355e
[test/crypto] Add Poly1305 python implementation (stratospher)
fec2ca6c9a
[test/crypto] Use chacha20_block function in `data_to_num3072` (stratospher)
0cde60da3a
[test/crypto] Add ChaCha20 python implementation (stratospher)
69d3f50ab6
[test/crypto] Add HMAC-based Key Derivation Function (HKDF) (stratospher)
08a4a56cbc
[test] Move test framework crypto functions to crypto/ (stratospher)
Pull request description:
split off from #24748 to keep commits related to cryptography and functional test framework changes separate.
This PR adds python implementation and unit tests for HKDF, ChaCha20, Poly1305, ChaCha20Poly1305 AEAD, FSChaCha20 and FSChaCha20Poly1305 AEAD.
They're based on cc177ab7bc/bip-0324/reference.py
for easy review.
ACKs for top commit:
sipa:
utACK c534c08710
achow101:
ACK c534c08710
theStack:
re-ACK c534c08710
Tree-SHA512: 08a0a422d2937eadcf0edfede37e535e6bc4c2e4b192441bbf9bc26dd3f03fa3388effd22f0527c55af173933d0b50e5b2b3d36f2b62d0aca3098728ef06970e
1 year ago
Fabian Jahr
cb0336817e
scripted-diff: Rename hash_serialized_2 to hash_serialized_3
...
-BEGIN VERIFY SCRIPT-
sed -i 's/hash_serialized_2/hash_serialized_3/g' $( git grep -l 'hash_serialized_2' ./src ./contrib ./test )
-END VERIFY SCRIPT-
1 year ago
Fabian Jahr
351370a1d2
coinstats: Fix hash_serialized2 calculation
...
The legacy serialization was vulnerable to maleation and is fixed by
adopting the same serialization procedure as was already in use for
MuHash.
This also includes necessary test fixes where the hash_serialized2 was
hardcoded as well as correction of the regtest chainparams.
Co-authored-by: Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
1 year ago
stratospher
08a4a56cbc
[test] Move test framework crypto functions to crypto/
1 year ago
Hennadii Stepanov
306ccd4927
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
Commits of previous years:
- 2021: f47dda2c58
- 2020: fa0074e2d8
- 2019: aaaaad6ac9
2 years ago
MarcoFalke
fa38b1c8bd
Remove buggy and confusing IncrementExtraNonce
3 years ago
Sebastian Falbesoner
f30041c914
test: create txs with current `nVersion` (2) by default
...
This enables testing of BIP68 without the need of explicitly
setting nVersion to 2. This is e.g. useful for transactions
created with MiniWallet.
3 years ago
Sebastian Falbesoner
041abfebe4
test: MiniWallet: add P2TR support and use it per default
3 years ago
MarcoFalke
fa0b916971
scripted-diff: Use generate* from TestFramework
...
-BEGIN VERIFY SCRIPT-
sed --regexp-extended -i \
's/((self\.)?(nodes\[[^]]+\]|[a-z_]*(wallet|node)[0-9a-z_]*))\.(generate(|toaddress|block|todescriptor)(\(|, ))/self.\5\1, /g' \
$(git grep -l generate ./test | grep -v 'test_framework/' | grep -v 'feature_rbf')
-END VERIFY SCRIPT-
3 years ago
Sebastian Falbesoner
1914054208
scripted-diff: test: rename `FromHex` to `from_hex`
...
-BEGIN VERIFY SCRIPT-
sed -i 's/\<FromHex\>/from_hex/g' $(git grep -l FromHex)
-END VERIFY SCRIPT-
Co-authored-by: MarcoFalke <falke.marco@gmail.com>
3 years ago
Fabian Jahr
4f2653a890
test: Use deterministic chain in utxo set hash test
...
Also melts the previously separated test cases into one.
4 years ago
Fabian Jahr
4973c5175c
test: Remove wallet dependency of utxo set hash test
4 years ago
Fabian Jahr
e987ae5a55
test: Add test for deterministic UTXO set hash results
4 years ago
Fabian Jahr
6ccc8fc067
test: Add test for gettxoutsetinfo RPC with MuHash
4 years ago