Add runnable node, HTTP API, all-devices revocation and reconnect sync
- cmd/node: init (recovery phrase onboarding), run, recover - api: public reads of canonical signed records, token-protected writes - identity: RevokeAll voids every device certified before a cutoff, so recovery works with only the phrase; store purges by certificate age - p2p: redial bootstrap peers, sync on every new connection (in-flight guard only), validate bootstrap addresses up front - docs: API, recovery semantics, peer-ID change on recovery Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,4 +4,15 @@ A free, distributed marketplace for buying, selling and renting. Listings are
|
||||
replicated across the nodes of everyone who participates, so there is no central
|
||||
server and no cost. See [docs/PROTOCOL.md](docs/PROTOCOL.md).
|
||||
|
||||
## Try it
|
||||
|
||||
```
|
||||
go build -o bin/node ./cmd/node
|
||||
bin/node init # shows your 12-word recovery phrase once
|
||||
bin/node run --region u1x # u1x = Hamburg area; API on http://127.0.0.1:8080
|
||||
```
|
||||
|
||||
A second node on the same network finds this one automatically (mDNS); across
|
||||
networks, pass `--bootstrap /ip4/<addr>/tcp/<port>/p2p/<peer id>`.
|
||||
|
||||
Licensed under the [GNU AGPL-3.0](LICENSE): free for everyone, and it stays free.
|
||||
|
||||
Reference in New Issue
Block a user