From f223799eb468a85595e2f4f448c071240cbfdfca Mon Sep 17 00:00:00 2001 From: Ben Date: Sat, 29 Jul 2023 22:40:22 +0200 Subject: [PATCH] Add LBRY protocol --- protocols.csv | 1 + protocols/LBRY.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 protocols/LBRY.md diff --git a/protocols.csv b/protocols.csv index 2417943..4fc8e18 100644 --- a/protocols.csv +++ b/protocols.csv @@ -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, diff --git a/protocols/LBRY.md b/protocols/LBRY.md new file mode 100644 index 0000000..b271c79 --- /dev/null +++ b/protocols/LBRY.md @@ -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) \ No newline at end of file