-
-
Notifications
You must be signed in to change notification settings - Fork 194
Unable to successfully sign ethereum transaction offline #257
Comments
As you can see from the backtrace, this is a bug in ethereum library and as such should be reported here: https://github.com/ethereum/pyethereum |
more likely at EthJsonRpc which enforces unreasonably old versions of its dependencies: this is the part of code that shouldn't live in |
Any way to work around this in the meantime? |
pip install --upgrade ethereum
pip install rlp==0.6.0 ethereum dependencies are a big mess right now :/ |
I'll try from scratch again, but that still produces the same error. When trying to upgrade ethereum, I get: |
try upgrading setuptools as well |
Nope. I get an error with the ethereum package still: Complete output from command python setup.py egg_info:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-LO8fnl/eth-hash/ |
I tried running sudo apt-get install pandoc but it didn't help. |
Are you doing this in python 2? Python 2 is unsupported. pip3 install --upgrade setuptools
pip3 install trezor
pip3 install ethjsonrpc
pip3 install "ethereum>2.3" "rlp==0.6.0" More technical info, in case more people stumble upon this from google:
|
That did it. Thank you for your assistance, kind internet stranger. Should I still raise this to https://github.com/ConsenSys/ethjsonrpc or/and https://github.com/ethereum/pyethereum ? |
it's already known and fixed on the ethereum side: ethereum/pyethereum#870 i see you reported an issue on ethjsonrpc already: Consensys/ethjsonrpc#51 the last piece is https://github.com/ethereum/eth-hash, where i'm not entirely sure what the problem is. if you can reliably reproduce it, it would definitely be worth reporting. |
ok. Thanks. As far as syntax goes, if I want to sign on Ropsten, is this correct? trezorctl ethereym_sign_tx -c "3" -n"/44'60'/0'/0/0" -v "100 milliether" -g "21000" -t "41000000000" -i "0" 0xTOADDRESS |
you've got a number of typos there. |
Ok. thanks. It doesn't seem to affect the raw signature output. I will test it out and see if I can successfully sign on an offline computer and then publish online. |
If I try to push the signed transaction to https://ropsten.etherscan.io/pushTx I get the following error: |
you're probably running into #236 i hope to release 0.9.2 soon; in the meantime you'll probably need to update to github master |
so? build from master? or wait for 0.9.2 |
I am trying to complete a transaction with trezorctl ethereum_sign_tx, but I get the following error:
Traceback (most recent call last):
File "/usr/local/bin/trezorctl", line 851, in
cli()
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/decorators.py", line 27, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/usr/local/bin/trezorctl", line 687, in ethereum_sign_tx
from ethjsonrpc import EthJsonRpc
File "/usr/local/lib/python3.5/dist-packages/ethjsonrpc/init.py", line 1, in
from ethjsonrpc.client import (EthJsonRpc, ParityEthJsonRpc,
File "/usr/local/lib/python3.5/dist-packages/ethjsonrpc/client.py", line 7, in
from ethereum import utils
File "/usr/local/lib/python3.5/dist-packages/ethereum/utils.py", line 103, in
assert sha3('').encode('hex') == 'c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470'
AttributeError: 'bytes' object has no attribute 'encode'
I've tried on different OS / VMs but had no luck. Not sure if this is a user error, or how to work around it. Any insight would be appreciated.
The text was updated successfully, but these errors were encountered: