Skip to content

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 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()))

@Omarabdul3ziz
Copy link
Contributor Author

work can be resumed after threefoldtech/mycelium#677

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.

2 participants