Skip to content

init messenger #1370

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

Open
wants to merge 6 commits into
base: development
Choose a base branch
from
Open

init messenger #1370

wants to merge 6 commits into from

Conversation

Omarabdul3ziz
Copy link
Contributor

@Omarabdul3ziz Omarabdul3ziz commented May 26, 2025

init mycelium messenger identity

waiting: threefoldtech/tfchain#1037

@Omarabdul3ziz Omarabdul3ziz force-pushed the development_messenger branch from 1ec1d4b to 52f1a26 Compare May 29, 2025 14:29
@Omarabdul3ziz Omarabdul3ziz requested a review from Copilot June 3, 2025 10:57
Copy link

@Copilot 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

This PR introduces the new messenger package to support Mycelium messenger identity with features such as twin management and JSON-RPC server/client functionality. Key changes include:

  • Implementation of twin management functions (GetMyceliumInfo and UpdateMyceliumTwin) to integrate chain identity.
  • Addition of JSON-RPC server and client examples for distributed messaging.
  • Updates to documentation, module configuration, build, and CI workflows to include the messenger package.

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
messenger/twin.go New twin management functions integrating Mycelium identity via API call and on-chain update.
messenger/raw.go Added TODO for raw message handling.
messenger/jsonrpc.go Comprehensive JSON-RPC implementation added.
messenger/go.mod Module file updated with required dependencies.
messenger/examples/jsonrpc/server/main.go Example implementation of a JSON-RPC server.
messenger/examples/jsonrpc/client/main.go Example implementation of a JSON-RPC client.
messenger/README.md Documentation for the new messenger package.
go.work, go.work.sum, README.md, Makefile, and workflows Inclusion of messenger package in overall project build and test setup.
Comments suppressed due to low confidence (1)

messenger/twin.go:63

  • Consider renaming 'twinid' to 'twinID' to align with Go naming conventions and improve clarity.
twinid, err := c.subCon.GetTwinByPubKey([]byte(c.identity.PublicKey()))

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.

1 participant