ceramicnetwork / js-did

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

Support eip55 #176

Closed oed closed 8 months ago

oed commented 8 months ago

This PR enables the pkh-ethereum CACAO verifier to verify SIWE messages that have the ethereum address in the iss field encoded using EIP-55, while retaining support for lower case addresses.

In addition it would be desirable to change the default behavior of generated SIWE messages for CACAO to use eip55 by default since the spec says the address "Must" be encoded using eip55. However, since the did-session package uses @ceramicnetwork packages that depend on a released version of @didtools it's not possible to make this change now before the verification support has been rolled out.

This PR fixes #173