mirror of
https://github.com/cwinfo/hyperboria-peers.git
synced 2024-11-22 09:30:27 +00:00
recommend peernames (#78)
* recommend peernames * add peerName to recommended fields in README
This commit is contained in:
parent
dbc0d5114b
commit
f1665e9870
@ -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.
|
||||||
|
2
tests.js
2
tests.js
@ -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;
|
||||||
|
2
tests.py
2
tests.py
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user