5
0
mirror of https://github.com/cwinfo/hyperboria-peers.git synced 2024-11-22 01:20:27 +00:00
A geographically sorted list of public peering credentials for joining Hyperboria
Go to file
Kyler Chin b474c5fbb8 Including my Ipv6 peer (#93)
* Update kylerchin-website.k

* Update kylerchin-website.k

* correct json syntax
2017-06-17 18:41:30 +02:00
af/ng/lagos added peer in lagos (#87) 2017-01-19 15:09:21 -05:00
as Public peer around Bangalore, India (#90) 2017-04-25 11:13:12 +02:00
eu fix casing issue from merge 2016-11-01 12:32:00 +01:00
na Including my Ipv6 peer (#93) 2017-06-17 18:41:30 +02:00
.gitignore bump package.json because of readme 2016-06-19 11:50:24 +02:00
.travis.yml Use new build system (followed old docs before) 2015-11-25 13:06:24 -08:00
index.js serialize pub location along with peering data 2017-03-11 15:49:12 +01:00
package.json bump version 2017-06-14 10:29:28 +02:00
README.md nest new jersey node for more information via directory structure (#77) 2016-10-16 13:39:40 +02:00
tests.js recommend peernames (#78) 2016-10-02 15:10:54 +02:00
tests.py recommend 'login' field 2017-01-19 20:43:25 -05:00

Build Status

A geographically sorted list of public peering credentials for joining Hyperboria.

Hyperboria uses cjdns to construct an end-to-end-encrypted ipv6 mesh network. Connections between nodes are established manually, and traffic is restricted to the resulting social graph.

This repository exists for those who don't already know somebody on Hyperboria.

Using credentials

First, set up a cjdns node.

To connect your node to one of these public peers, follow the steps in the cjdns README.

Adding your public node's credentials

If you've created a public node, and would like to have it listed here, fork the repo, add a keyfile, and submit a PR.

Filepath conventions

Credentials are sorted geographically, by continent code. Nodes may be classified further, at the discretion of the node operator, and the administrators of the repository.

The suggested format is /continent/country/region/municipality. For example, /na/ca/ontario/toronto/.

Region and municipality codes are based on self identification, not any ISO standard. An operator might prefer to list their node in Cascadia instead of Washington state. For simplicity's sake, we'd prefer that new credentials conform to existing structures.

JSON formatting

We have tried to standardize the structure of the actual credential files, as such, they have the strictest requirements of anything in this repository.

  • Your credentials must be valid JSON.
  • They must contain the necessary fields:
    • ip/port
    • password
    • publicKey
    • contact (a means of contacting the operator)
  • The following fields are not yet required, but are recommended:
    • gpg, listing your 16 character pgp fingerprint (all caps, no spaces)
    • peerName, a human-readable name for the node
  • credentials should be formatted such that:
    • indentation uses four spaces
    • the file ends with a newline character.
  • credentials must use IP:port strings for keys
    • credentials using hostnames will not be accepted
{
    "192.168.1.5:10326":{
        "contact":"alice@bob.com",
        "gpg":"FC00FC00FC00FC00",
        "login":"default-login",
        "password":"nq1uhmf06k8c5594jqmpgy26813b81s",
        "peerName":"your-name-goes-here",
        "publicKey":"ssxlh80x0bqjfrnbkm1801xsxyd8zd45jkwn1zhlnccqj4hdqun0.k"
    }
}

Naming your entry

Credential files must end with .k. Otherwise, you can name your file whatever you want, but for simplicity's sake, avoid characters which will need to be escaped at the command line (or within the javascript api).

Javascript API

Peering credentials in this repository can be accessed via a simple Javascript API (using Nodejs).

It's available as a module on npm:

npm install hyperboria-peers

Usage

var Peers = require("hyperboria-peers");

/*  return a list of public peers located in North America */
Peers.filter(function (creds, path) {
    return path.indexOf('NA') !== -1;
});

/*  return a list of public keys */
Peers.map(function (creds, path) {
    return creds[Object.keys(creds)[0]].publicKey;
});

/*  the underlying data is exposed in a nested json structure */
console.log(Peers.peers);

console.log(Peers.peers.NA.us.california);