Open snd opened 6 years ago
This needs to be a separate API of evm
object, the code is in ethkey
, you can have a look at accounts_provider.mod
.
I think the API should look like this:
let account = evm.new_account();
let signed = account.sign(data);
contract.functions().do_sth(signed).transact(evm.with_sender(account.address()));
thanks for the pointer!
Thank you for opening this issue, working on something similar myself for the PrivateContract example.
@tomusdrw this will likely solve the issues I'm having with recovering correct addresses, many thanks!
i'll figure this out and try to make it easy to use from sol-rs
i'm trying to replicate a truffle test that uses
web.eth.sign
(https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethsign)how can i best do this in rust?