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

Add LBRY protocol #161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions protocols.csv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ code, size, name, comment
55, V, dns6, domain name resolvable only to IPv6 addresses
56, V, dnsaddr,
132, 16, sctp,
140, V, lbry address to content on the LBRY network
301, 0, udt,
302, 0, utp,
400, V, unix,
Expand Down
46 changes: 46 additions & 0 deletions protocols/LBRY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# `lbry`

`lbry` is a protocol that identifies specific content on the LBRY network. This can be a channel, a stream or a playlist.

## Representation Format

### Human-readable

The human-readable format of the `lbry` protocol is used in the same way as the URLs at [https://lbry.tech/spec](https://spec.lbry.com/#urls), but in this case the scheme is `/lbry/` instead of `lbry://`, so:

#### Stream Claim Name

/lbry/meet-lbry

#### Channel Claim Name

/lbry/@lbry

#### Channel Claim Name and Stream Claim Name

/lbry/@lbry/meet-lbry

#### Claim ID

/lbry/meet-lbry:7a0aa95c5023c21c098
/lbry/meet-lbry:7a
/lbry/@lbry:3f/meet-lbry

#### Sequence

/lbry/meet-lbry*1
/lbry/@lbry*1/meet-lbry

#### Amount Order

/lbry/meet-lbry$2
/lbry/meet-lbry$3
/lbry/@lbry$2/meet-lbry

### Binary

TODO: Define a binary format for the `lbry` protocol.

## Binary Size

Variable (Explicit)