Skip to content

Commit

Permalink
bLIP-0012: Hosted Channels (lightning#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf authored Oct 31, 2022
1 parent 3286ece commit 42777f0
Show file tree
Hide file tree
Showing 3 changed files with 385 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ For more detail on the process, please read [bLIP-0001](./blip-0001.md) and
| [3](./blip-0003.md) | Keysend | Valentine Wallace | Active |
| [10](./blip-0010.md) | Podcasting 2.0 | Satoshis Stream | Active |
| [11](./blip-0011.md) | NameDesc | Hampus Sjöberg | Active |
| [17](./blip-0017.md) | Hosted Channels | Anton Kumaigorodskiy | Active |
24 changes: 18 additions & 6 deletions blip-0002.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ Feature bits in the `0`-`255` range are reserved for BOLTs: bLIPs must use featu

bLIPs may reserve feature bits by adding them to the following table:

| Bits | Name | Description | Context | Dependencies | Link |
|---------|----------------------|-------------------------------------------------|----------------|--------------------------------|--------------------------------|
| 54/55 | `keysend` | A form of spontaneous payment | N | `var_onion_optin` | [bLIP 3](./blip-0003.md) |
| Bits | Name | Description | Context | Dependencies | Link |
| --------- | ---------------------- | ------------------------------------------------- | ---------------- | -------------------------------- | -------------------------------- |
| 54/55 | `keysend` | A form of spontaneous payment | N | `var_onion_optin` | [bLIP 3](./blip-0003.md) |
| 256/257 | `hosted_channels` | This node accepts requests for hosted channels | IN | | [bLIP 17](./blip-0017.md) |

### Messages

Expand All @@ -55,9 +56,20 @@ that every lightning implementation understands.
Message types in the `0`-`32767` range are reserved for BOLTs: bLIPs must use message types in the `32768`-`65535` range.
bLIPs may create new messages and reserve their type in the following table:

| Type | Name | Link |
|-------|-----------------------------|--------------------------------|
| 32768 | `message_name` | Link to the corresponding bLIP |
| Type | Name | Link |
| ------- | ------------------------------- | -------------------------- |
| 65535 | `invoke_hosted_channel` | [bLIP 17](./blip-0017.md) |
| 65533 | `init_hosted_channel` | [bLIP 17](./blip-0017.md) |
| 65531 | `last_cross_signed_state` | [bLIP 17](./blip-0017.md) |
| 65529 | `state_update` | [bLIP 17](./blip-0017.md) |
| 65527 | `state_override` | [bLIP 17](./blip-0017.md) |
| 65525 | `hosted_channel_branding` | [bLIP 17](./blip-0017.md) |
| 65511 | `ask_channel_branding` | [bLIP 17](./blip-0017.md) |
| 63505 | `hc_update_add_htlc` | [bLIP 17](./blip-0017.md) |
| 63503 | `hc_update_fulfill_htlc` | [bLIP 17](./blip-0017.md) |
| 63501 | `hc_updated_fail_htlc` | [bLIP 17](./blip-0017.md) |
| 63499 | `hc_update_fail_malformed_htlc` | [bLIP 17](./blip-0017.md) |
| 63497 | `hc_error` | [bLIP 17](./blip-0017.md) |

### TLV fields in BOLT messages

Expand Down
Loading

0 comments on commit 42777f0

Please sign in to comment.