File "C:\Users\sashi\Desktop\r\prv.py", line 8, in
private_key = base58.b58decode_check(str_private_key)
File "C:\Users\sashi\AppData\Local\Programs\Python\Python310\lib\site-packages\base58\__init__.py", line 152, in b58decode_check
result = b58decode(v, alphabet=alphabet, autofix=autofix)
File "C:\Users\sashi\AppData\Local\Programs\Python\Python310\lib\site-packages\base58\__init__.py", line 124, in b58decode
acc = b58decode_int(v, alphabet=alphabet, autofix=autofix)
File "C:\Users\sashi\AppData\Local\Programs\Python\Python310\lib\site-packages\base58\__init__.py", line 104, in b58decode_int
raise ValueError(
ValueError: Invalid character '0'
а если меняю приват ключ в "hex" то такою ошибку
Traceback (most recent call last):
File "C:\Users\sashi\Desktop\r\prv.py", line 11, in
signing_key = ecdsa.SigningKey.from_string(private_key, curve = ecdsa.SECP256k1)
File "C:\Users\sashi\AppData\Local\Programs\Python\Python310\lib\site-packages\ecdsa\keys.py", line 874, in from_string
raise MalformedPointError(
ecdsa.errors.MalformedPointError: Invalid length of private key, received 33, expected 32
ребят выдает такую ошибку в чем дело
File "C:\Users\sashi\Desktop\r\prv.py", line 8, in
private_key = base58.b58decode_check(str_private_key)
File "C:\Users\sashi\AppData\Local\Programs\Python\Python310\lib\site-packages\base58\__init__.py", line 152, in b58decode_check
result = b58decode(v, alphabet=alphabet, autofix=autofix)
File "C:\Users\sashi\AppData\Local\Programs\Python\Python310\lib\site-packages\base58\__init__.py", line 124, in b58decode
acc = b58decode_int(v, alphabet=alphabet, autofix=autofix)
File "C:\Users\sashi\AppData\Local\Programs\Python\Python310\lib\site-packages\base58\__init__.py", line 104, in b58decode_int
raise ValueError(
ValueError: Invalid character '0'
а если меняю приват ключ в "hex" то такою ошибку
Traceback (most recent call last):
File "C:\Users\sashi\Desktop\r\prv.py", line 11, in
signing_key = ecdsa.SigningKey.from_string(private_key, curve = ecdsa.SECP256k1)
File "C:\Users\sashi\AppData\Local\Programs\Python\Python310\lib\site-packages\ecdsa\keys.py", line 874, in from_string
raise MalformedPointError(
ecdsa.errors.MalformedPointError: Invalid length of private key, received 33, expected 32
ребят выдает такую ошибку в чем дело