Skip to content

Adjusting CAIP-171 as per last meeting#173

Merged
bumblefudge merged 13 commits into
ChainAgnostic:masterfrom
bumblefudge:pr-171-recommended-rephrasing
Nov 22, 2022
Merged

Adjusting CAIP-171 as per last meeting#173
bumblefudge merged 13 commits into
ChainAgnostic:masterfrom
bumblefudge:pr-171-recommended-rephrasing

Conversation

@bumblefudge

@bumblefudge bumblefudge commented Nov 16, 2022

Copy link
Copy Markdown
Collaborator
  • generalize "token" to "identifier" to be more platform-neutral
  • made assumptions more explicit
  • add stability assumption (identifier doesn't change as session state changes)

NB @ritave (can't tag you for review directly)

partly addresses #141 , although #170 is probably the place to further specify session management for shared assumpions. ideally the choice to use #170 session objects would be separate from the choice to use #171 session identifiers, and wallets or users would know what they can assume based on one or both of the standards being conformed to?

@ritave ritave left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good with minor asks

Comment thread CAIPs/caip-171.md Outdated
Comment thread CAIPs/caip-171.md Outdated
Comment thread CAIPs/caip-171.md Outdated
Comment thread CAIPs/caip-171.md Outdated
1. It MUST uniquely identify an open and stateful session.
1. It MUST identify a closeable session, and it MUST become invalid
after a session is closed.
1. It MUST remain the same as the identified session's state changes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this point.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the identifier remains constant when the state changes, i.e. not content-addressable/hash-based. better phrasing appreciated!

Comment thread CAIPs/caip-171.md
Comment thread CAIPs/caip-171.md Outdated
Comment thread CAIPs/caip-171.md
## Copyright

Copyright and related rights waived via
[CC0](https://creativecommons.org/publicdomain/zero/1.0/).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I'd suggest having the CC0 in the LICENSE file of this repo as well.

That's what we do in Snaps Improvement Proposals

Comment thread CAIPs/caip-25.md
## Changelog

n/a
- 2022-11-26: add mandatory indexing by session identifier (i.e. CAIP-171 requirement)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a Draft, imho the changelog shouldn't be in it until it's Final, where we could add Errata.

Bumblefudge and others added 3 commits November 16, 2022 17:31
Co-authored-by: Olaf Tomalka <olaf.tomalka@gmail.com>
Co-authored-by: Olaf Tomalka <olaf.tomalka@gmail.com>
Comment thread CAIPs/caip-171.md
caip: 171
title: Session Identifiers
author: Olaf Tomalka (@ritave)
discussions-to: <URL>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
discussions-to: <URL>
discussions-to: https://github.com/ChainAgnostic/CAIPs/discussions/176

@bumblefudge bumblefudge merged commit 3924966 into ChainAgnostic:master Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants