Joystream / Joystream/joystream

Introduce immutable channel handles

Open
#4,390 3 comments 0 reactions 0 assignees View on GitHub
content-pallet idea post-mainnet runtime
Dominant language
Rust
Stars
1.4k
Forks
116
PR merge metrics
No merged PRs in 30d

Description

# Background

Channels currently just have names, which are mutable and need not be unique. Only immutable identifier is an integer, the channel id. This seems like a bad idea, doing things like @-mentiong the channel, searching and doing other things, would benefit from a human readable name one could trust. Also may make it easier to distinguish fake from real channels, as raw numbers are not memorable, and assets&name can easily be mimicked. Distinguishing real from fake will be very important as part of CRTs.

# Proposal

Introduce immutable runtime enforced channel handles. Since all old channels will not have them, the will only be unique up among set handles. I don't think any migration would be needed on the runtime side. One difficulty is what to do about deleted channels, should new channels be able to use those handles? if not, then this will contribute to persistent storage footprint, but unlikely to be a big deal.

Could be released with any any immediate implications in Atlas, CLI or other tools, if we allow creation of new channels without a handle set. If we enforce handles for all new channels, then that would require some tweaking of those dependencies. An importnat value unlock is of-course having Atlas resolve channels through handles, not only IDs.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.