From 097814d3e391448afbc59189cd4bbf1532a6e926 Mon Sep 17 00:00:00 2001 From: davidchocholaty Date: Tue, 5 Nov 2024 22:55:41 +0100 Subject: [PATCH] Fix ecdsa error --- run.sh | 10 +++++----- src/transaction.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/run.sh b/run.sh index f0c97c6..87cc913 100755 --- a/run.sh +++ b/run.sh @@ -1,7 +1,7 @@ #!/bin/bash -#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 \ 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 """