This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JSON-RPC: transaction: Represent R and S as RpcQuantityHex (#166)
Problem: Go-ethereum client cannot unmarshall json it receives from Ganache's response to 'eth_getBlockByHash' request. Best Known Cause: Go-etherum client interprets R and S as quantities, not data ( as evidenced by big.Int type ) (https://github.com/ethereum/go-ethereum/blob/master/core/types/transaction.go#L54) Temporary solution: Encode R and S as RPC quantity, not data. Justification: At the moment, it is easier to customize Ganache than to propose changes to Go-etherum client. Moreover, it appears strange for the Ethereum JSON RPC Specification to treat R and S as data, not quantities: after all, R and S and integer-like objects in the context of the elliptic curve cryptography, i.e. they admit operations such as addition, subtraction, modulus, etc. Proposal for long-term solution: From remarks above, it appears most natural to change the Ethereum JSON RPC Specification to treat R and S as quantities and change Ganache accordingly.
- Loading branch information