Commit Graph

442 Commits

Author SHA1 Message Date
Muneeb Ali
5087d13e62 This commit makes the following updates:
1) Default hostnames (dht.openname.org, dht.onename.com, dht.halfmoonlabs.com) instead of IP addresses enabling the organizations that are running the dht servers to mask failures of individual servers / IPs
2) For DHT bootstrapping, hostnames of default servers are converted to the corresponding IP addresses
2014-12-18 13:17:12 -05:00
Ryan Shea
d7dba0c533 start using nameset to refer to all names ever registered 2014-12-18 13:17:12 -05:00
Muneeb Ali
0396c0d9d7 This commit makes the following updates:
1) Default hostnames (dht.openname.org, dht.onename.com, dht.halfmoonlabs.com) instead of IP addresses enabling the organizations that are running the dht servers to mask failures of individual servers / IPs
2) For DHT bootstrapping, hostnames of default servers are converted to the corresponding IP addresses
2014-12-18 12:25:00 -05:00
Ryan Shea
d414b24ac2 Merge branch 'master' of github.com:onenameio/opennamed 2014-12-18 10:52:34 -05:00
Ryan Shea
3d2daecc3c require correct consensus hashes for name registration 2014-12-17 19:07:07 -05:00
Muneeb Ali
aaefe4b2d5 Merge branch 'openname-dht' 2014-12-16 16:37:48 -05:00
Muneeb Ali
45808baf57 This commit makes the following changes:
1) Removes regular state saving for local DHT node. Upon reboot the DHT node will go through discovery again
2) Disables log.err messages from underlying twisted module (openname-cli really doesn't want to see those)
3) Added three default DHT nodes (server hosted by Onename currently)
4) Added a new Dockerfile for DHT nodes (it uses the new default servers for discovery and the latest repo)
2014-12-16 16:28:10 -05:00
Muneeb Ali
249c6c217d Merge pull request #23 from onenameio/openname-dht
Openname dht
2014-12-12 16:14:07 -05:00
Muneeb Ali
e8112d7b34 added dht client for querying dht data 2014-12-12 16:12:27 -05:00
Muneeb Ali
3d0c9bd784 start/stop dht node with opennamed 2014-12-12 16:12:05 -05:00
Muneeb Ali
63527e8bfe separated server and client, client is not thin currently 2014-12-12 16:11:46 -05:00
Muneeb Ali
fb3bd835a8 separated server and client, client is not thin currently 2014-12-12 16:11:34 -05:00
Muneeb Ali
6c34787c0a added default dht servers 2014-12-12 16:11:15 -05:00
Muneeb Ali
6cd7415356 ignore .pickle files 2014-12-12 16:11:07 -05:00
Muneeb Ali
3a26dc8947 local dht node, currently acts as a client 2014-12-12 13:49:02 -05:00
Muneeb Ali
0a54246e42 currently the cli talks to dht node 2014-12-12 13:48:45 -05:00
Muneeb Ali
9aaf8ece3d ignore .pid files 2014-12-12 13:48:05 -05:00
Muneeb Ali
850d1a5b01 added support for talking to dht node 2014-12-12 13:47:49 -05:00
Muneeb Ali
a821334996 added requirements for kademlia 2014-12-12 13:47:34 -05:00
Muneeb Ali
434ba80346 added requirements for kademlia 2014-12-12 13:47:24 -05:00
Ryan Shea
ae94e2b9b5 add in merkle snapshots 2014-12-11 19:38:17 -05:00
Muneeb Ali
c2f6e4255b changed Dockerfile to use local files in build (our repo is not pubic yet) 2014-12-11 19:34:27 -05:00
Muneeb Ali
ee21b02692 fixed bug for comparing key digest 2014-12-11 19:33:30 -05:00
Muneeb Ali
497ee0a7c1 fixed bug for comparing key digest 2014-12-11 19:33:15 -05:00
Ryan Shea
87c7e7f70a reorganize merkle functions; create merkle tests; move namedb to namespace module 2014-12-11 18:59:39 -05:00
Ryan Shea
4706985897 add in merkle tree module 2014-12-11 18:37:36 -05:00
Ryan Shea
5ae68fdea3 Merge branch 'master' of github.com:onenameio/opennamed 2014-12-11 18:33:46 -05:00
Ryan Shea
230830f234 Merge pull request #19 from onenameio/organization
Organization
2014-12-11 18:33:37 -05:00
Ryan Shea
4bc9e689b9 Merge branch 'master' of github.com:onenameio/opennamed 2014-12-11 18:33:07 -05:00
Muneeb Ali
70a55272a9 Merge pull request #22 from onenameio/openname-dht
Openname dht
2014-12-11 18:10:44 -05:00
Muneeb Ali
15e228c914 This commit adds a DHT for openname data. It adds:
1) A custom storage layer for kademlia python implemention. The storage layer:
    a) accepts content-addressable data i.e., hash(value) must be key
    b) accepts only JSON data as values
    c) has a longer TTL for key-value pairs

2) A stand-alone server for running the DHT

3) A test file for quickly checking the DHT functionality

4) A docker image for the DHT server
2014-12-11 18:05:12 -05:00
Muneeb Ali
d8ae895f48 Dockerfile for DHT server 2014-12-11 18:04:23 -05:00
Muneeb Ali
d1bbd04f37 added gitignore to ignore data files 2014-12-11 17:55:09 -05:00
Muneeb Ali
ba3baa65f1 added instructions for stand-alone server 2014-12-11 17:54:46 -05:00
Muneeb Ali
c868eb8495 Merge pull request #21 from onenameio/opennamed-server
Opennamed server
2014-12-11 16:19:03 -05:00
Muneeb Ali
cf6d831d68 This commit adds basic RPC functions and hooks them with the cli. More specifically:
-- Adds cli commands for name operations (preorder, register, update, transfer, and renew)
-- Adds cli commands for dht operations (storedata, getdata)
-- Adds hooks for all name and dht operations on opennamed
2014-12-11 16:13:56 -05:00
Ryan Shea
f735b7a31e reorganize namespace module 2014-12-11 15:34:42 -05:00
Ryan Shea
b9525589a7 add in call for whether a sender is the name admin 2014-12-11 15:10:45 -05:00
Ryan Shea
0bbd49d043 Merge branch 'nameops' 2014-12-11 15:08:45 -05:00
Ryan Shea
ba723f3045 minor edits 2014-12-11 15:08:22 -05:00
Ryan Shea
59384c5969 Merge pull request #17 from onenameio/nameops
create separate modules for name operations and namespace functions
2014-12-11 12:16:13 -05:00
Muneeb Ali
223cee34e5 small edits for pep8 and added RPC_TIMEOUT 2014-12-11 11:49:32 -05:00
Muneeb Ali
5df44ef1c5 added RPC_TIMEOUT 2014-12-11 11:34:07 -05:00
Muneeb Ali
96eaa72b0e small edits for pep8 2014-12-11 11:31:35 -05:00
Muneeb Ali
fba8e0662a small code style fixes 2014-12-11 11:18:53 -05:00
Ryan Shea
215a21dfe4 reorganize modules; simplify operation functions 2014-12-10 18:03:16 -05:00
Ryan Shea
46bcb51987 create separate modules for name operations and namespace building functions 2014-12-09 18:17:47 -05:00
Ryan Shea
376ab6e76a Merge pull request #14 from onenameio/expiration
merge Name Expiration
2014-12-09 13:34:45 -05:00
Ryan Shea
2a6f362fb5 make sure name renewals pay the original mining fee 2014-12-09 12:59:58 -05:00
Ryan Shea
f6a842d9b6 add in name expiration 2014-12-09 12:57:24 -05:00