Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/notrustverify/nymsocketmanager
https://github.com/notrustverify/nymsocketmanager
golang nym privacy sdk
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/notrustverify/nymsocketmanager
- Owner: notrustverify
- License: gpl-3.0
- Created: 2023-05-16T07:31:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-07T16:41:22.000Z (over 1 year ago)
- Last Synced: 2024-08-04T04:01:48.186Z (5 months ago)
- Topics: golang, nym, privacy, sdk
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
- awesome-nym - NymSocketManager - a golang module to facilitate the communication with the Mixnet ![stars](https://img.shields.io/github/stars/notrustverify/nymsocketmanager.svg?style=social) (π¨Tools)
README
# NymSocketManager
[![Go Reference](https://pkg.go.dev/badge/notrustverify/nymsocketmanager.svg)](https://pkg.go.dev/notrustverify/nymsocketmanager)
This Go module handles the connection to the Nym Mixnet let you focus on the rest of your application.
Note that this module needs a running nym-client to connect to the mixnet! It can be downloaded [here](https://nymtech.net/download-nym-components/) or built according the instructions [here](https://nymtech.net/docs/binaries/building-nym.html). Instructions for initiating and running a nym-client can be found [here](https://nymtech.net/docs/clients/websocket-client.html).
## Installation
NymSocketManager is available using the standard `go get` command.
Install it by running:
```bash
go get -u github.com/notrustverify/nymsocketmanager
```## Usage
The module can be imported as following:
```go
import NymSocketManager "github.com/notrustverify/nymsocketmanager"
```You can thenow instantiate the NymSocketManager or the SocketManager.
## Example
Examples on how to use both NymSocketManager and SocketManager can be found in the [examples](https://github.com/notrustverify/nymsocketmanager) folder.
You can also check our Nostr-Nym proxy in Go: [NostrNym](https://github.com/notrustverify/nostr-nym).## Future improvements
The following could be improved regarding this module:
* Improve type documentation
* Write more tests
* Use the [WS library](https://pkg.go.dev/github.com/gobwas/ws) for websocket connections. This module currently uses the [Gorilla Websocket library](https://pkg.go.dev/github.com/gorilla/websocket), which is unmaintained at the current time of writing (05.2023).## License
This code is released under the GPLv3+ license.