Skip to content

Structural hash implementaion allows for collisions #827

@pnowosie

Description

@pnowosie

To simplify implementation of EIP-712 structural hashing when transaction does not contain metadata 32 zero-bytes is used for EIP-712 hash computation.
This seems to be good idea since it is aligned with how solidity handles unassigned variables and simplifies further processing

As we discovered this approach could open an attack vector, because transaction without metadata and the same transaction with zero-metadata have different txhash-es, which are used as transaction identifier. But both have same struct hash and therefore a signature.

It will require changes in elixir & cntract's code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions