RTNS (RTrade Name Service) is a stand-alone IPNS record management service, designed to facilitate secure publishing of IPNS records, leveraging an encrypted keystore known as kaas. Internally it facilitates scheduled republishing of all published records.
It is essentially a modified and condensed version of go-ipfs/namesys with minor optimizations.
To import this library:
import "github.com/RTradeLtd/rtns"
You'll need to create a libp2p host, and a dht providing them as constructor arguments, and a valid keystore. This package contains a helper tool to wrab a KaaS client as a valid keystore interface type.
Ref: https://splice.com/blog/contributing-open-source-git-repositories-go/
- Fork the repository
- Clone the repository by running
git clone git@github.com:RTradeLtd/rtns.git $GOPATH/src/github.com/RTradeLtd/rtns
- Run
cd $GOPATH/src/github.com/RTradeLtd/rtns
- Set up remotes.
git remote rename origin upstream
git remote add origin git@github.com:<your-github-username>/rtns.git
- Add
export GO111MODULE=on
to.bashrc
or.bash_profile
(if you're on a Mac) or.zshrc
(if you're using zsh). Make sure to reload the rc file of your choice by runningsource <rc-file>
- Run
go mod download
to download the dependencies - To run the tests, use
go test ./...
- Fork and clone the repository to any location on your machine
- Run
cd rtns
- Set up a remote for the upstream repository
git remote add upstream git@github.com:RTradeLtd/rtns.git
- Run
go mod download
to download the dependencies - To run the tests, use
go test ./...
- When used within Temporal, any keys derived from the fail-over KaaS host are not eligible for automated republishing.
- DNSLink support
- Act as a gateway implementation to TNS (Temporal Name Server)
- Enable HA Kaas Backend
- This will involve repeatedly iterating through all available KaaS hosts attempting to retrieve the private key, until we either find the key or we iterate through all available KaaS hosts without finding one, triggering an error
- Enable automatic topic subscription for IPNS pubsub
- This would involve using rtfs to call an IPFS node, establishing a subscription for a given topic.