guildxyz / guild-zk

8 stars 0 forks source link

Check `msgHash` preimage at verification #21

Closed PopcornPaws closed 2 years ago

PopcornPaws commented 2 years ago

Description

In order to verify that the prover has indeed signed a specific message, we need to add a "hash check" in the verification function.

This is just hashing the address commitment point with a PointHasher. It is important to check that the PointHasher uses the same Keccak hasher as Metamask, so this should be checked first.

PopcornPaws commented 2 years ago

Done in #26