-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: development
Are you sure you want to change the base?
init messenger #1370
Conversation
4765b05
to
88a152c
Compare
88a152c
to
1ec1d4b
Compare
1ec1d4b
to
52f1a26
Compare
c8134a0
to
dc513bd
Compare
There was a problem hiding this 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()))
init mycelium messenger identity
waiting: threefoldtech/tfchain#1037