libnexapy-test 0.5.0__tar.gz → 0.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/MANIFEST.in +3 -1
- {libnexapy_test-0.5.0/libnexapy_test.egg-info → libnexapy_test-0.6.0}/PKG-INFO +1 -1
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/common/types.py +1 -1
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/address/address.py +11 -11
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/address/address_formatter.py +2 -2
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/block/block.py +8 -8
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/block/block_header.py +6 -6
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/grouptoken.py +11 -11
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/message.py +9 -9
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/network/network.py +1 -1
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/network/network_manager.py +3 -3
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/script/opcode.py +1 -1
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/script/script.py +5 -5
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/script/script_factory.py +10 -10
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/input/input.py +6 -6
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/input/public_key_hash.py +5 -5
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/input/public_key_template.py +6 -6
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/input/script_template.py +7 -7
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/output.py +9 -9
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/sighash_type.py +5 -5
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/transaction.py +14 -14
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/tx_builder.py +15 -15
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/tx_signature.py +6 -6
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/tx_signer.py +9 -9
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/unspent_output.py +6 -6
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/crypto/digital_signature.py +6 -6
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/crypto/ecdsa.py +8 -8
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/crypto/hash.py +3 -3
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/crypto/signature.py +2 -2
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/encoding/base32.py +1 -1
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/encoding/base58.py +2 -2
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/encoding/base58_check.py +4 -4
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/encoding/buffer_reader.py +4 -4
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/encoding/buffer_writer.py +3 -3
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/keys/hd_private_key.py +13 -13
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/keys/hd_public_key.py +13 -13
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/keys/hdkey_utils.py +5 -5
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/keys/private_key.py +11 -11
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/keys/public_key.py +6 -6
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0/libnexapy_test.egg-info}/PKG-INFO +1 -1
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/pyproject.toml +1 -1
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/LICENCE +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/README.md +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/__init__.py +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/common/__init__.py +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/common/class_types.py +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/crypto/__init__.py +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/crypto/curve_utils.py +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/crypto/ecc_fast.py +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/crypto/ripemd160.py +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/crypto/schnorr.py +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/crypto/secp256k1.py +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/utils/buffer_utils.py +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/utils/common_utils.py +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/utils/num_utils.py +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/utils/unit_utils.py +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test.egg-info/SOURCES.txt +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test.egg-info/dependency_links.txt +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test.egg-info/requires.txt +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test.egg-info/top_level.txt +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/COPYING +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/Makefile.am +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/README.md +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/autogen.sh +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/build-aux/m4/ax_jni_include_dir.m4 +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/build-aux/m4/ax_prog_cc_for_build.m4 +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/build-aux/m4/bitcoin_secp.m4 +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/configure.ac +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/contrib/lax_der_parsing.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/contrib/lax_der_parsing.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/contrib/lax_der_privatekey_parsing.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/contrib/lax_der_privatekey_parsing.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/include/secp256k1.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/include/secp256k1_ecdh.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/include/secp256k1_multiset.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/include/secp256k1_preallocated.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/include/secp256k1_recovery.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/include/secp256k1_schnorr.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/libsecp256k1.pc.in +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/asm/field_10x26_arm.s +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/basic-config.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/bench.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/bench_ecdh.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/bench_ecmult.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/bench_internal.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/bench_multiset.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/bench_recover.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/bench_sign.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/bench_verify.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/ecdsa.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/ecdsa_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/eckey.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/eckey_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/ecmult.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/ecmult_const.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/ecmult_const_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/ecmult_gen.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/ecmult_gen_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/ecmult_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/field.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/field_10x26.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/field_10x26_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/field_5x52.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/field_5x52_asm_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/field_5x52_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/field_5x52_int128_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/field_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/gen_context.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/group.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/group_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/hash.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/hash_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/java/org_bitcoin_NativeSecp256k1.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/java/org_bitcoin_NativeSecp256k1.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/java/org_bitcoin_Secp256k1Context.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/java/org_bitcoin_Secp256k1Context.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/ecdh/Makefile.am.include +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/ecdh/main_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/ecdh/tests_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/multiset/Makefile.am.include +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/multiset/main_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/multiset/tests_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/recovery/Makefile.am.include +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/recovery/main_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/recovery/tests_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/schnorr/Makefile.am.include +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/schnorr/main_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/schnorr/schnorr.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/schnorr/schnorr_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/modules/schnorr/tests_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/num.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/num_gmp.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/num_gmp_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/num_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/scalar.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/scalar_4x64.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/scalar_4x64_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/scalar_8x32.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/scalar_8x32_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/scalar_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/scalar_low.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/scalar_low_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/scratch.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/scratch_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/secp256k1.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/testrand.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/testrand_impl.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/tests.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/tests_exhaustive.c +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/secp256k1/src/util.h +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/setup.cfg +0 -0
- {libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/setup.py +0 -0
|
@@ -11,4 +11,6 @@ recursive-include secp256k1/src *.c *.h *.s *.include
|
|
|
11
11
|
recursive-include secp256k1/include *.h
|
|
12
12
|
recursive-include secp256k1/build-aux *
|
|
13
13
|
recursive-include secp256k1/contrib *
|
|
14
|
-
global-exclude
|
|
14
|
+
global-exclude libnexapy_test/crypto/libsecp256k1.so.0
|
|
15
|
+
global-exclude libnexapy_test/crypto/libsecp256k1.0.dylib
|
|
16
|
+
global-exclude libnexapy_test/crypto/libsecp256k1-0.dll
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import json
|
|
2
2
|
from typing import Self
|
|
3
3
|
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from
|
|
14
|
-
from
|
|
4
|
+
from libnexapy_test.core.address.address_formatter import *
|
|
5
|
+
from libnexapy_test.core.network.network_manager import networks
|
|
6
|
+
from libnexapy_test.core.script.opcode import Opcode
|
|
7
|
+
from libnexapy_test.core.script.script import Script, ScriptElement
|
|
8
|
+
from libnexapy_test.common.class_types import FrozenClass
|
|
9
|
+
from libnexapy_test.common.types import Networkish, AddressDto
|
|
10
|
+
from libnexapy_test.crypto.hash import Hash
|
|
11
|
+
from libnexapy_test.encoding.buffer_writer import BufferWriter
|
|
12
|
+
from libnexapy_test.keys.public_key import PublicKey
|
|
13
|
+
from libnexapy_test.utils.buffer_utils import is_hash_buffer
|
|
14
|
+
from libnexapy_test.utils.common_utils import is_hex_string
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class AddressError(Exception):
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
from typing import Self
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
3
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
4
|
+
from libnexapy_test.common.types import IBlock, IBlockHeader
|
|
5
|
+
from libnexapy_test.core.block.block_header import BlockHeader
|
|
6
|
+
from libnexapy_test.core.transaction.transaction import Transaction
|
|
7
|
+
from libnexapy_test.encoding.buffer_reader import BufferReader
|
|
8
|
+
from libnexapy_test.encoding.buffer_writer import BufferWriter
|
|
9
|
+
from libnexapy_test.crypto.hash import Hash
|
|
10
|
+
from libnexapy_test.utils.buffer_utils import concat
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class Block(TypedClass):
|
|
@@ -2,12 +2,12 @@ from typing import Self
|
|
|
2
2
|
|
|
3
3
|
import time
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
import
|
|
5
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
6
|
+
from libnexapy_test.common.types import IBlockHeader
|
|
7
|
+
from libnexapy_test.crypto.hash import Hash
|
|
8
|
+
from libnexapy_test.encoding.buffer_reader import BufferReader
|
|
9
|
+
from libnexapy_test.encoding.buffer_writer import BufferWriter
|
|
10
|
+
import libnexapy_test.utils.buffer_utils
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class BlockHeader(TypedClass):
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import json
|
|
2
2
|
from enum import Enum, unique
|
|
3
3
|
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from
|
|
14
|
-
from
|
|
4
|
+
from libnexapy_test.common.class_types import FrozenClass
|
|
5
|
+
from libnexapy_test.common.types import GroupIdData
|
|
6
|
+
from libnexapy_test.core.address.address import Address
|
|
7
|
+
from libnexapy_test.core.message import Message
|
|
8
|
+
from libnexapy_test.core.script.script import Script
|
|
9
|
+
from libnexapy_test.crypto.hash import Hash
|
|
10
|
+
from libnexapy_test.encoding.buffer_writer import BufferWriter
|
|
11
|
+
from libnexapy_test.keys.private_key import PrivateKey
|
|
12
|
+
from libnexapy_test.utils.buffer_utils import *
|
|
13
|
+
from libnexapy_test.utils.common_utils import is_hex_string
|
|
14
|
+
from libnexapy_test.utils.num_utils import to_buffer
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class GroupIdFlag(Enum):
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import base64
|
|
2
2
|
import json
|
|
3
3
|
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
4
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
5
|
+
from libnexapy_test.core.address.address import Address
|
|
6
|
+
from libnexapy_test.crypto.ecdsa import ECDSA
|
|
7
|
+
from libnexapy_test.crypto.hash import Hash
|
|
8
|
+
from libnexapy_test.crypto.signature import Signature
|
|
9
|
+
from libnexapy_test.encoding.buffer_writer import BufferWriter
|
|
10
|
+
from libnexapy_test.keys.private_key import PrivateKey
|
|
11
|
+
from libnexapy_test.keys.public_key import PublicKey
|
|
12
|
+
from libnexapy_test.utils.buffer_utils import *
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
class Message(TypedClass):
|
{libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/network/network_manager.py
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
from typing import Self
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
3
|
+
from libnexapy_test.common.class_types import FrozenClass, TypedClass
|
|
4
|
+
from libnexapy_test.common.types import Networkish
|
|
5
|
+
from libnexapy_test.core.network.network import (
|
|
6
6
|
NetworkParams,
|
|
7
7
|
Network,
|
|
8
8
|
LiveNetwork,
|
|
@@ -2,11 +2,11 @@ from typing import Self, TypeVar
|
|
|
2
2
|
import json
|
|
3
3
|
import math
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
5
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
6
|
+
from libnexapy_test.core.script.opcode import ScriptOpcode, Opcode
|
|
7
|
+
from libnexapy_test.encoding.buffer_reader import BufferReader
|
|
8
|
+
from libnexapy_test.utils.buffer_utils import is_hash_buffer
|
|
9
|
+
from libnexapy_test.utils.common_utils import is_hex_string
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class ScriptChunk(TypedClass):
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
from urllib.parse import urlparse
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
3
|
+
from libnexapy_test.common.class_types import FrozenClass
|
|
4
|
+
from libnexapy_test.core.address.address import Address
|
|
5
|
+
from libnexapy_test.core.address.address_formatter import AddressType
|
|
6
|
+
from libnexapy_test.core.grouptoken import GroupToken, GroupIdType
|
|
7
|
+
from libnexapy_test.core.script.opcode import ScriptOpcode, Opcode
|
|
8
|
+
from libnexapy_test.core.script.script import Script
|
|
9
|
+
from libnexapy_test.crypto.signature import Signature
|
|
10
|
+
from libnexapy_test.encoding.buffer_reader import BufferReader
|
|
11
|
+
from libnexapy_test.keys.public_key import PublicKey
|
|
12
|
+
from libnexapy_test.utils.common_utils import is_hex_string
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
class ScriptFactory(FrozenClass):
|
{libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/input/input.py
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from typing import Self
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
3
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
4
|
+
from libnexapy_test.common.types import InputType
|
|
5
|
+
from libnexapy_test.core.script.script import Script
|
|
6
|
+
from libnexapy_test.core.transaction.output import Output
|
|
7
|
+
from libnexapy_test.encoding.buffer_reader import BufferReader
|
|
8
|
+
from libnexapy_test.encoding.buffer_writer import BufferWriter
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class Input(TypedClass):
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
from typing import Self
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
3
|
+
from libnexapy_test.core.script.script import Script
|
|
4
|
+
from libnexapy_test.core.script.script_factory import ScriptFactory
|
|
5
|
+
from libnexapy_test.core.transaction.input.input import Input
|
|
6
|
+
from libnexapy_test.core.transaction.output import Output
|
|
7
|
+
from libnexapy_test.crypto.hash import Hash
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class PublicKeyHashInput(Input):
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from typing import Self
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
3
|
+
from libnexapy_test.core.script.opcode import Opcode
|
|
4
|
+
from libnexapy_test.core.script.script import Script
|
|
5
|
+
from libnexapy_test.core.script.script_factory import ScriptFactory
|
|
6
|
+
from libnexapy_test.core.transaction.input.input import Input
|
|
7
|
+
from libnexapy_test.core.transaction.output import Output
|
|
8
|
+
from libnexapy_test.crypto.hash import Hash
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class PublicKeyTemplateInput(Input):
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
from typing import Self
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
3
|
+
from libnexapy_test.core.script.opcode import Opcode
|
|
4
|
+
from libnexapy_test.core.script.script import Script
|
|
5
|
+
from libnexapy_test.core.script.script_factory import ScriptFactory
|
|
6
|
+
from libnexapy_test.core.transaction.input.input import Input
|
|
7
|
+
from libnexapy_test.core.transaction.output import Output
|
|
8
|
+
from libnexapy_test.crypto.hash import Hash
|
|
9
|
+
from libnexapy_test.keys.public_key import PublicKey
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class ScriptTemplateInput(Input):
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
from typing import Self
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
3
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
4
|
+
from libnexapy_test.common.types import OutputType
|
|
5
|
+
from libnexapy_test.core.address.address import Address
|
|
6
|
+
from libnexapy_test.core.address.address_formatter import AddressType
|
|
7
|
+
from libnexapy_test.core.grouptoken import GroupToken
|
|
8
|
+
from libnexapy_test.core.network.network_manager import networks
|
|
9
|
+
from libnexapy_test.core.script.script import Script
|
|
10
|
+
from libnexapy_test.encoding.buffer_reader import BufferReader
|
|
11
|
+
from libnexapy_test.encoding.buffer_writer import BufferWriter
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class Output(TypedClass):
|
{libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/sighash_type.py
RENAMED
|
@@ -2,11 +2,11 @@ from typing import Self
|
|
|
2
2
|
|
|
3
3
|
import re
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
5
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
6
|
+
from libnexapy_test.common.types import InputSighashType, OutputSighashType
|
|
7
|
+
from libnexapy_test.encoding.buffer_reader import BufferReader
|
|
8
|
+
from libnexapy_test.encoding.buffer_writer import BufferWriter
|
|
9
|
+
from libnexapy_test.utils.common_utils import is_hex_string
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class SighashType(TypedClass):
|
{libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/transaction.py
RENAMED
|
@@ -2,20 +2,20 @@ from datetime import datetime, timezone
|
|
|
2
2
|
import math
|
|
3
3
|
from typing import Self
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from
|
|
14
|
-
from
|
|
15
|
-
from
|
|
16
|
-
from
|
|
17
|
-
from
|
|
18
|
-
from
|
|
5
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
6
|
+
from libnexapy_test.common.types import InputType
|
|
7
|
+
from libnexapy_test.core.script.opcode import Opcode
|
|
8
|
+
from libnexapy_test.core.script.script import Script
|
|
9
|
+
from libnexapy_test.core.script.script_factory import ScriptFactory
|
|
10
|
+
from libnexapy_test.core.transaction.input.input import Input
|
|
11
|
+
from libnexapy_test.core.transaction.input.public_key_hash import PublicKeyHashInput
|
|
12
|
+
from libnexapy_test.core.transaction.input.public_key_template import PublicKeyTemplateInput
|
|
13
|
+
from libnexapy_test.core.transaction.input.script_template import ScriptTemplateInput
|
|
14
|
+
from libnexapy_test.core.transaction.output import Output
|
|
15
|
+
from libnexapy_test.encoding.buffer_reader import BufferReader
|
|
16
|
+
from libnexapy_test.encoding.buffer_writer import BufferWriter
|
|
17
|
+
from libnexapy_test.crypto.hash import Hash
|
|
18
|
+
from libnexapy_test.utils.common_utils import *
|
|
19
19
|
|
|
20
20
|
"""
|
|
21
21
|
Represents a Nexa transaction
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
2
|
from typing import Self
|
|
3
3
|
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from
|
|
14
|
-
from
|
|
15
|
-
from
|
|
16
|
-
from
|
|
17
|
-
from
|
|
18
|
-
from
|
|
4
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
5
|
+
from libnexapy_test.common.types import InputType
|
|
6
|
+
from libnexapy_test.core.script.script import Script
|
|
7
|
+
from libnexapy_test.core.script.script_factory import ScriptFactory
|
|
8
|
+
from libnexapy_test.core.transaction.input.input import Input
|
|
9
|
+
from libnexapy_test.core.transaction.input.public_key_hash import PublicKeyHashInput
|
|
10
|
+
from libnexapy_test.core.transaction.input.public_key_template import PublicKeyTemplateInput
|
|
11
|
+
from libnexapy_test.core.transaction.input.script_template import ScriptTemplateInput
|
|
12
|
+
from libnexapy_test.core.transaction.output import Output
|
|
13
|
+
from libnexapy_test.core.transaction.sighash_type import SighashType
|
|
14
|
+
from libnexapy_test.core.transaction.transaction import Transaction
|
|
15
|
+
from libnexapy_test.core.transaction.tx_signer import TxSigner
|
|
16
|
+
from libnexapy_test.core.transaction.unspent_output import UnspentOutput
|
|
17
|
+
from libnexapy_test.keys.private_key import PrivateKey
|
|
18
|
+
from libnexapy_test.utils.buffer_utils import *
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class TransactionBuilder(TypedClass):
|
{libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/tx_signature.py
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from typing import Self
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
3
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
4
|
+
from libnexapy_test.core.script.script import Script
|
|
5
|
+
from libnexapy_test.core.transaction.sighash_type import SighashType
|
|
6
|
+
from libnexapy_test.crypto.signature import Signature
|
|
7
|
+
from libnexapy_test.keys.public_key import PublicKey
|
|
8
|
+
from libnexapy_test.utils.common_utils import is_hex_string
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class TxSignature(TypedClass):
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
1
|
+
from libnexapy_test.common.class_types import FrozenClass
|
|
2
|
+
from libnexapy_test.common.types import InputSighashType, OutputSighashType
|
|
3
|
+
from libnexapy_test.core.transaction.input.input import Input
|
|
4
|
+
from libnexapy_test.core.transaction.sighash_type import SighashType
|
|
5
|
+
from libnexapy_test.core.transaction.tx_signature import TxSignature
|
|
6
|
+
from libnexapy_test.encoding.buffer_writer import BufferWriter
|
|
7
|
+
from libnexapy_test.crypto import schnorr
|
|
8
|
+
from libnexapy_test.crypto.hash import Hash
|
|
9
|
+
from libnexapy_test.crypto.signature import Signature
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class TxSigner(FrozenClass):
|
{libnexapy_test-0.5.0 → libnexapy_test-0.6.0}/libnexapy_test/core/transaction/unspent_output.py
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
1
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
2
|
+
from libnexapy_test.core.script.script import Script
|
|
3
|
+
from libnexapy_test.core.script.script_factory import ScriptFactory
|
|
4
|
+
from libnexapy_test.utils.buffer_utils import *
|
|
5
|
+
from libnexapy_test.utils.common_utils import *
|
|
6
|
+
from libnexapy_test.utils.unit_utils import UnitUtils
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class UnspentOutput(TypedClass):
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from typing import Self
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
3
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
4
|
+
from libnexapy_test.common.types import ISignature
|
|
5
|
+
from libnexapy_test.crypto.signature import Signature
|
|
6
|
+
from libnexapy_test.keys.private_key import PrivateKey
|
|
7
|
+
from libnexapy_test.keys.public_key import PublicKey
|
|
8
|
+
from libnexapy_test.utils.num_utils import from_buffer
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class DigitalSignature(TypedClass):
|
|
@@ -13,14 +13,14 @@ from ctypes import (
|
|
|
13
13
|
|
|
14
14
|
from ecdsa.ellipticcurve import INFINITY, Point
|
|
15
15
|
|
|
16
|
-
from
|
|
17
|
-
from
|
|
18
|
-
from
|
|
19
|
-
from
|
|
20
|
-
from
|
|
21
|
-
from
|
|
22
|
-
from
|
|
23
|
-
from
|
|
16
|
+
from libnexapy_test.crypto.digital_signature import DigitalSignature
|
|
17
|
+
from libnexapy_test.crypto.hash import Hash
|
|
18
|
+
from libnexapy_test.crypto.secp256k1 import N, P, secp256k1
|
|
19
|
+
from libnexapy_test.crypto.signature import Signature
|
|
20
|
+
from libnexapy_test.keys.private_key import PrivateKey
|
|
21
|
+
from libnexapy_test.keys.public_key import PublicKey, curve, generator
|
|
22
|
+
from libnexapy_test.utils.buffer_utils import *
|
|
23
|
+
from libnexapy_test.utils.num_utils import from_buffer, to_buffer
|
|
24
24
|
|
|
25
25
|
NONCEFUNC = CFUNCTYPE(c_int, POINTER(c_byte), c_char_p, c_char_p, c_char_p, c_void_p, c_uint)
|
|
26
26
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import hashlib
|
|
2
2
|
import hmac
|
|
3
3
|
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
4
|
+
from libnexapy_test.common.class_types import FrozenClass
|
|
5
|
+
from libnexapy_test.crypto.ripemd160 import RIPEMD160
|
|
6
|
+
from libnexapy_test.utils.buffer_utils import *
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class Hash(FrozenClass):
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
from typing import Self
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
3
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
4
|
+
from libnexapy_test.common.types import BufferParams
|
|
5
|
+
from libnexapy_test.crypto.hash import Hash
|
|
6
|
+
from libnexapy_test.encoding.base58 import Base58
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class Base58Check(TypedClass):
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
from typing import Self
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
import
|
|
6
|
-
import
|
|
3
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
4
|
+
from libnexapy_test.common.types import BufferParams
|
|
5
|
+
import libnexapy_test.utils.buffer_utils as BufferUtils
|
|
6
|
+
import libnexapy_test.utils.common_utils as CommonUtils
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class BufferReader(TypedClass):
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
from typing import Self
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
import
|
|
3
|
+
from libnexapy_test.common.class_types import TypedClass
|
|
4
|
+
from libnexapy_test.common.types import BufferWriterOptions
|
|
5
|
+
import libnexapy_test.utils.buffer_utils as BufferUtils
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class BufferWriter(TypedClass):
|