~whereswaldon/arborchat

ab29f76b2fb991e49bf6ec7283e34917ceb5b8bc — Chris Waldon 1 year, 6 months ago 963b36e
Fix typos and formatting
2 files changed, 7 insertions(+), 1 deletions(-)

M specifications/index.md
M specifications/sprout.md
M specifications/index.md => specifications/index.md +1 -1
@@ 5,7 5,7 @@ title: Arbor Specifications
# Arbor Specifications

- [Arbor Forest Specification](forest.md): Describes the format of
  the Arbor Forest data strcuture that all Arbor nodes must conform
  the Arbor Forest data structure that all Arbor nodes must conform
  to.
- [Sprout Protocol Specification](sprout.md): Describes the sprout
  protocol for exchanging nodes between hosts. Sprout is a simple

M specifications/sprout.md => specifications/sprout.md +6 -0
@@ 6,14 6,17 @@ Sprout Protocol 0.0
===

Protocol requires transport that is:

- connection-based
- reliable delivery

Protocol messages:

- newline delimited messages
- first line is header information and includes length of subsequent lines

Example:

```
response message_id:2 count:5
SHA512...


@@ 24,11 27,13 @@ SHA512...
```

Anatomy of protocol message:

```
<verb> <id> [message-specific fields]
```

Messages:

```
version <message_id> <version number>



@@ 68,6 73,7 @@ announce <message_id> <count>
```

Procedure:

```
client -> server: version
server -> client: version | error (unsupported)