-
Notifications
You must be signed in to change notification settings - Fork 451
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
Difference in return value for 'r' parameter in getTransactionBy... #2372
Comments
thanks @tjayrush |
I actually think you guys have it right. You produce a 64 character (32 byte) response. Makes more sense to me than a 63 character response even though it's the same value. |
It depends on whether the number is treated as a byte array or number.
If other clients treat r and s like numbers then it should be without
leading zeros.
pon., 12 paź 2020 o 16:00 Thomas Jay Rush <[email protected]>
napisał(a):
… I actually think you guys have it right. You produce a 64 character (32
byte) response. Makes more sense to me than a 63 character response even
though it's the same value.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#2372 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADZZYJIWBM6YOXSFHQZ3XTSKMKZRANCNFSM4SLZKZMQ>
.
|
To be honest, I don’t even know what ‘r’ and ’s’ (or even ‘v’) are or how they’re used. According to the Parity docs (which may or may not be gospel) it's a QUANTITY: https://openethereum.github.io/wiki/JSONRPC-eth-module#eth_gettransactionbyhash. But, according to these from Nethermind, they're DATA https://docs.nethermind.io/nethermind/ethereum-client/json-rpc/json-rpc-modules/eth#eth_gettransactionbyhash |
I found this document which indicates that the |
I just found this issue using the new hive JSON-RPC test suite. All other clients treat r, s as QUANTITY and do not return leading zero. I know it's annoying, but for the sake of consistency among clients, we should change it to QUANTITY in Nethermind. This issue originally came up in November 2018 for geth: ethereum/go-ethereum#18152 |
will look at it |
This curl command:
returns different values in the
r
key from both TurboGeth and Parity.Nethermind returns:
(64 characters and a leading zero)
Both TurboGeth and Parity return
(63 characters, no leading zero)
As bytes, these two values are identical. As strings, when returned from RPC, they differ.
Note, My guess is this happens with any transaction whose
r
has a leading zero, so not just this example.The text was updated successfully, but these errors were encountered: