-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
editorial: Clarify string representation of CACAO signing input #236
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable to me, since it's the net-same information displayed in a more readily signable message. ChainID will still be illegible in namesapces where CAIP-2 is counterintuitive or not part of the native end-user's mental model, but at the very least this is less scary than having an incomprehensible bit of hash prepended to the address (which is what the EIP editors insisted on in the EIP).
Do we have any sense of how many non-Ceramic implementers this could break, tho? Is it worth adding some mention of the previous state to "## Legacy considerations?" I.e. if Haardik's library and Ceramic's library are being used to generate the messages AND verify them in 99% of contexts, then it's a no-brainer, but it's still worth discussing downstream risks insofar as they're known, making it a major-version change in package managers, etc etc...
AFAIK, that only changes wording, not the implementations. |
hehe by this i meant, throw currently-conformant implementations out of conformance (and interop) oh sorry just realized you wrote this before today's meeting :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
As noted in ChainAgnostic/namespaces#41 (comment) and ChainAgnostic/namespaces#66 CAIP-122 is ambiguous.
We define
address
in data model as CAIP-10 account. String representation of singing input though uses plain${address}
field, and${chain-id}
that the data model does not even mention.The PR here resolves the ambiguity. Data model remains the same, with
address
being CAIP-10. String representation is clarified to reflect two fields (previously${address}
and${chain-id}
) are derived from data model'saddress
.