-
Notifications
You must be signed in to change notification settings - Fork 66
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
How to represent multi-chain accounts? #105
Comments
we went back and forth for months on the pros and con's of a CAIP-10wide wildcard and ultimately ended up rejecting it, making do you think that would work for your use-case, to have a "special" |
Yes, a special reference for the Or since it's the CAIP-2 part that we want to change, would this be a change to the CAIP-2 |
the latter -- just add a section to the polkadot/caip10.md between syntax and test cases with a |
I am not sure this is the right repo, or if I should open an issue on the
CAIP
repo.I know there's an open ticket for updating the CAIP-2 and CAIP-10 for Polkadot based on the new XCM v3 format.
Nevertheless, we are currently working on a cross-chain identity solution where we would need to rely on the Polkadot feature that lets users use the same account on multiple chain, by simply encoding the public key differently. Specifically, there is a "generic Substrate address" which always starts with the number
5
, e.g.,5CK8D1sKNwF473wbuBP6NuhQfPaWUetNsWUNAAzVwTfxqjfr
. This means that given a public key, it could be encoded in a lot of different ways, but also always to something that starts with5
.This goes beyond the concept of a CAIP-10 identifier being "anchored" to a CAIP-2 chain, and I was wondering if there is discussion in this direction already, given the increasing popularity of cross-chain interactions.
I guess a blockchain account would still have to be bounded somehow, but I would rather see it bound to a namespace, than to a specific chain ID. For instance, while a specific Polkadot blockchain account could still be identified by a CAIP-10, anchoring it to a specific chain and nowhere else, it must also be possible NOT to anchor it to a specific chain. Do you think making the
reference
component of a chain ID optional would be a way? Or would this call for a new CAIP that indicates "a group of related chains"? Something likepolkadot:<account>
would include any chain-specific account that can be encoded from the starting account, on any Polkadot chain, while apolkadot:<chain_reference>:<account>
, would still refer to a specific chain, for which the discussion was opened in the ticket linked above.The text was updated successfully, but these errors were encountered: