You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_account/account.py", line 799, in _parsePrivateKey
return self._keys.PrivateKey(HexBytes(key))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_keys/datatypes.py", line 251, in __init__
validate_private_key_bytes(private_key_bytes)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_keys/validation.py", line 89, in validate_private_key_bytes
validate_bytes_length(value, 32, "private key")
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_keys/validation.py", line 54, in validate_bytes_length
raise ValidationError(
eth_utils.exceptions.ValidationError: Unexpected private key length: Expected 32, but got 16 bytes
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/naman/Dapp/deploy.py", line 14, in <module>
acct = w3.eth.account.from_key(private_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_utils/decorators.py", line 18, in _wrapper
return self.method(obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_account/account.py", line 264, in from_key
key = self._parsePrivateKey(private_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_utils/decorators.py", line 18, in _wrapper
return self.method(obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/eth_account/account.py", line 801, in _parsePrivateKey
raise ValueError(
ValueError: The private key must be exactly 32 bytes long, instead of 32 bytes.
I've been using the web3.y package with the Infura API, and I keep getting this error. Can somebody assist me in resolving this issue?
The text was updated successfully, but these errors were encountered:
On 08-Sep-2023, at 2:30 AM, Paul Robinson ***@***.***> wrote:
Closed #3092 as not planned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
I've been using the web3.y package with the Infura API, and I keep getting this error. Can somebody assist me in resolving this issue?
The text was updated successfully, but these errors were encountered: