Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #546 #551

Merged
merged 14 commits into from
Oct 23, 2019
14 changes: 11 additions & 3 deletions 0029-stream/0029-stream.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: STREAM - A Multiplexed Money and Data Transport for ILP
draft: 7
draft: 8
---

# STREAM: A Multiplexed Money and Data Transport for ILP
Expand Down Expand Up @@ -174,7 +174,11 @@ Implementations SHOULD wait for a valid response (encrypted with the same shared

#### 4.3.1. Connection Asset Details

Each endpoint MAY expose their asset details by sending a `ConnectionAssetDetails` frame.
Each endpoint MAY expose their asset details by sending a `ConnectionAssetDetails` frame. This frame is optional because some use-cases, such as Web Monetization, do not require it.
sappenin marked this conversation as resolved.
Show resolved Hide resolved

Asset details exposed by this frame MUST not change during the lifetime of a Connection.

Endpoints that wish to discover the other endpoint's asset details MAY send a `ConnectionAssetDetails` frame containing its own asset details. The other endpoint MUST respond to this frame with a new `ConnectionAssetDetails` frame containing its own asset details.

### 4.4. Streams

Expand Down Expand Up @@ -325,7 +329,7 @@ If implementations allow half-open connections, an endpoint MAY continue sending

| Field | Type | Description |
|---|---|---|
| Source Address | ILP Address | New ILP address of the endpoint that sent the frame. |
| Source Address | ILP Address | New ILP address of the endpoint that sent the frame. |

#### 5.3.3. `ConnectionMaxData` Frame

Expand Down Expand Up @@ -432,6 +436,10 @@ In other words, if a sender resends data (e.g. because a packet was lost), it MU
| Source Asset Code | Utf8String | Asset code of endpoint that sent the frame. |
| Source Asset Scale | UInt8 | Asset scale of endpoint that sent the frame. |

If an endpoint receives a `ConnectionAssetDetails` frame, the endpoint MUST respond with a new `ConnectionAssetDetails` frame containing its own asset details.

Asset details exposed by this frame MUST NOT change during the lifetime of a Connection.

### 5.4. Error Codes

Error codes are sent in `StreamClose` and `ConnectionClose` frames to indicate what caused the stream or connection to be closed.
Expand Down