commit | de2fdb9bf9830805f2886ef55ab56b4d7d10f31a | [log] [tgz] |
---|---|---|
author | Amin Bandali <amin.bandali@savoirfairelinux.com> | Tue Sep 28 16:03:04 2021 -0400 |
committer | Amin Bandali <amin.bandali@savoirfairelinux.com> | Tue Sep 28 16:03:14 2021 -0400 |
tree | d6daa0b95762a52036b3dfcf0200bd96fcc74776 | |
parent | 9f52a82810fad8e901513f2f5266084035d87b99 [diff] |
gitreview: update gerrit host and project Change-Id: I0e514a574bb628d993cce2aed9f8b6eee38e4bfe
Ring Nameservice is used to resolve easily memorable usernames to Ring IDs. Ring clients communicate with the Nameservice using HTTP.
To run, make sure you have Solidity compiler solc
installed.
Instructions for Ubuntu:
sudo add-apt-repository ppa:ethereum/ethereum sudo apt-get update sudo apt-get install solc
Then do a make
in the project root directory.
You'll need to use Python 3.5+ to run the nameservice. If you already don't have tmux installed, do pip install tmux
, and then:
python start_eth_cluster.py
Finally, make sure you have nodejs and npm install, do:
npm install sudo nodejs index.js
(we need sudo for Express server to listen on port 80)
This will launch the HTTP server used to interface with the nameservice. Send a GET request to name/<username>
to get its Ring ID. Send a POST request to name/<username>
to register new username-RingID pair.
Optionally, you can dump all username-RingID pairs to file using:
nodejs read_names.js
This will dump all the username-RingID pairs to names.json
file.