Use eip155 signer for public transactions #375
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Use eip155 for public transactions. Private transactions will continue to use V={37,38}, hence you need to set chain id to some value other than 1 to avoid conflict. This PR should be merged along with #350 (which enable eip155 for locally signed transactions), and #354 (which fixes
TestEIP155SigningVitalik
by using a new set of test vectors withchain_id=10
)Tested on public value transfer, private contract deployment, public contract deployment on 'Ubuntu 16.04.4 LTS
with
Web3 1.0.0-beta.34and
chain_id=10`.