Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-nameservice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-nameservice
Commits
7b212b04
Commit
7b212b04
authored
7 years ago
by
Asad Salman
Browse files
Options
Downloads
Patches
Plain Diff
nameservice: added readme with instructions
Change-Id: I40bbc8a919c18e71646543cdf3200ce100d66915
parent
a3de7c08
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
readme.md
+40
-0
40 additions, 0 deletions
readme.md
with
40 additions
and
0 deletions
readme.md
0 → 100644
+
40
−
0
View file @
7b212b04
# Ring Nameservice
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.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment