Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse r/s values from signTransaction as U256 #250

Merged
merged 1 commit into from Sep 8, 2019

Conversation

geigerzaehler
Copy link
Contributor

Parity Ethereum also returns the r and s values in the RawTransactionDetails response of personal_signTransaction. These values are encoded as U256 instead of fixed 32 byte strings. This results in response values that have less uneven number of hex characters. For these cases deserialization of the response fails.

To accomodate this case we change the type the r and s fields in RawTransactionDetails.

Parity Ethereum also returns the `r` and `s` values in the `RawTransactionDetails` response of
`personal_signTransaction`. These values are encoded as `U256` instead of fixed 32 byte strings. This results in
response values that have less uneven number of hex characters. For these cases deserialization of the response fails.

To accomodate this case we change the type the `r` and `s` fields in `RawTransactionDetails`.
geigerzaehler pushed a commit to oscoin/oscoin-parity-wasm-prototype that referenced this pull request Sep 6, 2019
Patches web3 with tomusdrw/rust-web3#250 so that
`sign_transaction()` works.
geigerzaehler pushed a commit to oscoin/oscoin-parity-wasm-prototype that referenced this pull request Sep 6, 2019
Patches web3 with tomusdrw/rust-web3#250 so that
`sign_transaction()` works.
geigerzaehler pushed a commit to oscoin/oscoin-parity-wasm-prototype that referenced this pull request Sep 6, 2019
Patches web3 with tomusdrw/rust-web3#250 so that
`sign_transaction()` works.
Copy link
Owner

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@tomusdrw tomusdrw merged commit db4443e into tomusdrw:master Sep 8, 2019
@geigerzaehler geigerzaehler deleted the parity-raw-transaction-r-s branch September 8, 2019 16:44
geigerzaehler pushed a commit to oscoin/oscoin-parity-wasm-prototype that referenced this pull request Sep 9, 2019
Patches web3 with tomusdrw/rust-web3#250 so that
`sign_transaction()` works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants