Skip to content

feat: new Topic ID format#103

Open
xDarksome wants to merge 8 commits intomainfrom
feat/wcp-topic-id
Open

feat: new Topic ID format#103
xDarksome wants to merge 8 commits intomainfrom
feat/wcp-topic-id

Conversation

@xDarksome
Copy link
Contributor

@xDarksome xDarksome commented Mar 6, 2026

Description

Introduces a new Relay-side generated topic ID format (18 bytes) that encodes the use-case (WCP/non-WCP) and Relay region.

How Has This Been Tested?

Unit

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

Copilot AI review requested due to automatic review settings March 6, 2026 18:25
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for decoding an updated Topic ID format while retaining legacy topic IDs within relay_rpc’s domain types.

Changes:

  • Introduces TopicDecodingError and new decoding logic for DecodedTopic supporting legacy and “pairing” topic kinds (with Region extraction).
  • Refactors hex encoding/decoding into shared helpers and reuses them in existing byte-array newtypes.
  • Expands unit tests to cover pairing topic decoding and region validation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants