core icon indicating copy to clipboard operation
core copied to clipboard

feat(primitives): serialize yParity and v simultaneously

Open yash-atreya opened this issue 1 year ago • 0 comments

Motivation

Previously, when v was set to 0x0 || 0x1 i.e Parity::Parity(false || true), only yParity would appear in the serialized form of the sig.

Solution

Serialize v along with yParity in that case. Ref: https://github.com/ethereum/go-ethereum/blob/473ee8fc07a3f89cf3978e164a6fad218de9a6b5/internal/ethapi/api.go#L1342-L1345

PR Checklist

  • [x] Added Tests
  • [ ] Added Documentation
  • [x] Breaking changes

yash-atreya avatar Jun 13 '24 11:06 yash-atreya