Skip to content

Commit

Permalink
Validate Hexadecimal
Browse files Browse the repository at this point in the history
Signed-off-by: Fahd El Haraka <elharakafahd@icloud.com>
  • Loading branch information
ELHARAKA authored Aug 2, 2024
1 parent 968a17e commit 1a0b223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions to_wif.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Module for converting batch bitcoin private keys to WIF (Compressed & Uncompressed).
"""

import binascii
from src.conversion_utils import convert_hex_to_wif
from src.common import process_file

Expand Down Expand Up @@ -48,7 +47,8 @@ def process_both_conversions(hex_private_key):
# Call common.py to process the file with both conversion functions
process_file("hex_input.txt", process_both_conversions)

print("Conversion process completed. Check 'compressed_output.txt' and 'uncompressed_output.txt' files for the converted keys.")
print("Conversion process completed. Check 'compressed_output.txt' and "
"'uncompressed_output.txt' files for the converted keys.")
print("__________________________________________________")
print("Developed by: Fahd El Haraka")
print("If this saved you time or helped, donations please for BTC Address:")
Expand Down

1 comment on commit 1a0b223

@0xMasud
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi, would you please add base58 here. am having error such

"The error "Invalid hexadecimal key: G" occurs because hexadecimal (base 16) only includes the characters 0-9 and A-F (or a-f). The character G is not valid in hexadecimal, leading to the error."

Please sign in to comment.