Theopetra / theo-contracts

1 stars 0 forks source link

prevent signature replay #144

Closed dreadful-dev closed 2 years ago

dreadful-dev commented 2 years ago

This pr fixes:

116

Signature malleability is possible within the Elliptic Curve cryptographic system. This PR updates ERC20Permit to use guards like recover to prevent such an attack

and

117

117 is fixed by inlining the domain separator into the permit call. It was inlined to prevent reorganizing due to stack level