Skip to content
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

Change ICA Version Prefix #423

Closed
3 tasks
colin-axner opened this issue Sep 17, 2021 · 4 comments
Closed
3 tasks

Change ICA Version Prefix #423

colin-axner opened this issue Sep 17, 2021 · 4 comments
Assignees

Comments

@colin-axner
Copy link
Contributor

Summary

Adjust from ics-27 -> ics27. Ideally fix on the specification as well


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged/assigned
@damiannolan
Copy link
Member

Question: Do we really want to maintain another const here for ICAPrefix?

The spec seems to indicate that the prefix should be the version prefix, i.e. ics27-1.
See under Technical Specification -> Contract:

// The port id will look like: ics27-1-{connection-number}-{counterparty-connection-number}-{owner-address}

If this is the case we can simply remove the ICAPrefix const and use VersionPrefix instead. The port identifier will then conform to the spec as defined above.
Thoughts @colin-axner @seantking ?

@colin-axner
Copy link
Contributor Author

I remember there being open discussion between @seantking and I about whether the version number needed to be included in the portID. This is primarily a concern in account recovery (if a channel closes via a light client attack). We can discuss this during the internal audit

Lets use the version prefix for now, unfortunately the portID will still be a little hard to read

@seantking
Copy link
Contributor

My idea for having the version in the port-id was essentially a paranoid attempt at future-proofing to ease a potential migration to version 2 of interchain accounts (if such a thing were to exist).

I figured if we had a mapping of v1 accounts and a mapping of v2 accounts it would make backward compatibility more straightforward.

@damiannolan
Copy link
Member

Closed by #434

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants