5
0
mirror of https://github.com/cwinfo/hyperboria-peers.git synced 2024-11-09 23:40:27 +00:00

recommend peernames (#78)

* recommend peernames

* add peerName to recommended fields in README
This commit is contained in:
ansuz 2016-10-02 15:10:54 +02:00 committed by GitHub
parent dbc0d5114b
commit f1665e9870
3 changed files with 4 additions and 3 deletions

View File

@ -37,7 +37,8 @@ We have tried to standardize the structure of the actual credential files, as su
+ publicKey + publicKey
+ contact (a means of contacting the operator) + contact (a means of contacting the operator)
* The following fields are not yet required, but are recommended: * The following fields are not yet required, but are recommended:
+ gpg, listing your 16 character pgp fingerprint (no spaces) + 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: * credentials should be formatted such that:
- indentation uses four spaces - indentation uses four spaces
- the file ends with a newline character. - the file ends with a newline character.

View File

@ -37,7 +37,7 @@ if (credsWithDns.length) {
*/ */
var requiredFields = ['password', 'publicKey', 'contact']; var requiredFields = ['password', 'publicKey', 'contact'];
var recommendedFields = ['gpg']; var recommendedFields = ['gpg', 'peerName'];
var insufficientFields = Peers.filter(function (x, p) { var insufficientFields = Peers.filter(function (x, p) {
var problem = false; var problem = false;

View File

@ -5,7 +5,7 @@ import os
import sys import sys
REQUIRED_FIELDS = ['publicKey', 'password', 'contact'] REQUIRED_FIELDS = ['publicKey', 'password', 'contact']
RECOMMENDED_FIELDS = ['gpg'] RECOMMENDED_FIELDS = ['gpg', 'peerName']
RED = '\x1b[01;31m' RED = '\x1b[01;31m'
GREEN = '\x1b[01;32m' GREEN = '\x1b[01;32m'