Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Incorrect EIP-712 Hashing for Arrays of Structs Inside Structs #11087

@ptescher

Description

@ptescher
  • Parity Ethereum version: 2.5.7
  • Operating system: Windows / MacOS / Linux
  • Installation: built from source
  • Fully synchronized: n/a
  • Network: n/a
  • Restarted: n/a

Had an issue trying to use the EIP-712 code to encode some typed data. The hash of the typed data differs from https://github.com/ethereumjs/ethereumjs-util which results in an incorrect recovery address. The JS one seems to match up with solidity so this appears to be a parity issue.

Here is an example of a failing payload: https://github.com/ptescher/parity-ethereum/blob/fix-eip-712-arrays/util/EIP-712/src/encode.rs#L600

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions