5
0
mirror of https://github.com/cwinfo/hyperboria-peers.git synced 2024-11-24 21:21:37 +00:00

don't try to validate files which don't end in .k (#70)

* don't try to validate files which don't end in .k

* provide an example which passes tests

recommend a gpg field

* undo changes to test
This commit is contained in:
ansuz 2016-10-01 16:31:36 +02:00 committed by GitHub
parent 1908552e45
commit dbc0d5114b

View File

@ -36,6 +36,8 @@ We have tried to standardize the structure of the actual credential files, as su
+ password + password
+ 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:
+ gpg, listing your 16 character pgp fingerprint (no spaces)
* 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.
@ -45,10 +47,12 @@ We have tried to standardize the structure of the actual credential files, as su
``` ```
{ {
"192.168.1.5:10326":{ "192.168.1.5:10326":{
"contact":"alice@bob.com",
"gpg":"FC00FC00FC00FC00",
"login":"default-login", "login":"default-login",
"password":"nq1uhmf06k8c5594jqmpgy26813b81s", "password":"nq1uhmf06k8c5594jqmpgy26813b81s",
"publicKey":"ssxlh80x0bqjfrnbkm1801xsxyd8zd45jkwn1zhlnccqj4hdqun0.k", "peerName":"your-name-goes-here",
"peerName":"your-name-goes-here" "publicKey":"ssxlh80x0bqjfrnbkm1801xsxyd8zd45jkwn1zhlnccqj4hdqun0.k"
} }
} }
``` ```