ceramicnetwork / js-did

A simple interface to interact with DIDs that conform to the DID-provider interface.
Other
95 stars 28 forks source link

fix(dids): Verify eip55 formatted CACAOs correctly #184

Closed oed closed 8 months ago

oed commented 8 months ago

There was a bug introduced in #176 where CACAO/SIWE message signed with eip55 encoding would result in an unsupportedDidMethod error. This was because an equality check would fail due to the difference between a lower case and a mixed case (eip55) ethereum address. This PR fixes this problem.