From b618bf2eefe89ee02d4112ac7a723cf8306ef375 Mon Sep 17 00:00:00 2001 From: davidchocholaty Date: Tue, 5 Nov 2024 22:55:41 +0100 Subject: [PATCH] Fix ecdsa error --- requirements.txt | 1 - run.sh | 6 +++++- src/transaction.py | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index ed2a25e..746c8a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ ecdsa==0.19.0 pycryptodome==3.20.0 -#sha3==0.2.1 \ No newline at end of file diff --git a/run.sh b/run.sh index f0c97c6..da26132 100755 --- a/run.sh +++ b/run.sh @@ -4,4 +4,8 @@ #venv/bin/pip install --upgrade pip #venv/bin/pip install -r requirements.txt #source /venv/bin/activate -python3 src/main.py --mempool=mempool > output.txt \ No newline at end of file +python3 -m venv venv +venv/bin/pip install --upgrade pip +venv/bin/pip install -r requirements.txt +source venv/bin/activate +python3 src/main.py --mempool=mempool > output.txt diff --git a/src/transaction.py b/src/transaction.py index cb905f1..616d1e2 100644 --- a/src/transaction.py +++ b/src/transaction.py @@ -1,7 +1,7 @@ import hashlib import json -from ecdsa import VerifyingKey, SECP256k1, BadSignatureError +#from ecdsa import VerifyingKey, SECP256k1, BadSignatureError from src.script import Script, InvalidScriptException from src.serialize import serialize_transaction @@ -307,4 +307,4 @@ def validate_p2sh_p2wpkh(self, vin_idx, vin): except BadSignatureError: return False - return True """ \ No newline at end of file + return True """