Update schema.md
This commit is contained in:
parent
3d93117df8
commit
da905ba9e3
1 changed files with 106 additions and 93 deletions
|
@ -3,6 +3,7 @@
|
|||
## [Claim](https://github.com/lbryio/lbryschema/blob/master/lbryschema/proto/claim.proto)
|
||||
Claims have the encompassing schema:
|
||||
|
||||
```protobuf
|
||||
message Claim {
|
||||
enum Version {
|
||||
UNKNOWN_VERSION = 0;
|
||||
|
@ -19,12 +20,14 @@ Claims have the encompassing schema:
|
|||
optional Certificate certificate = 4;
|
||||
optional Signature publisherSignature = 5;
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## [Stream](https://github.com/lbryio/lbryschema/blob/master/lbryschema/proto/stream.proto)
|
||||
Claims of streamType have a `stream`:
|
||||
|
||||
```protobuf
|
||||
message Stream {
|
||||
enum Version {
|
||||
UNKNOWN_VERSION = 0;
|
||||
|
@ -34,10 +37,12 @@ Claims of streamType have a `stream`:
|
|||
required Metadata metadata = 2;
|
||||
required Source source = 3;
|
||||
}
|
||||
```
|
||||
|
||||
## [Metadata](https://github.com/lbryio/lbryschema/blob/master/lbryschema/proto/metadata.proto)
|
||||
Streams have `metadata` describing their content:
|
||||
|
||||
```protobuf
|
||||
message Metadata {
|
||||
enum Version {
|
||||
UNKNOWN_VERSION = 0;
|
||||
|
@ -63,10 +68,12 @@ Streams have `metadata` describing their content:
|
|||
optional string preview = 10;
|
||||
optional string licenseUrl = 11;
|
||||
}
|
||||
```
|
||||
|
||||
## [Fee](https://github.com/lbryio/lbryschema/blob/master/lbryschema/proto/fee.proto)
|
||||
Metadata may include a fee to access the decryption key:
|
||||
|
||||
```protobuf
|
||||
message Fee {
|
||||
enum Version {
|
||||
UNKNOWN_VERSION = 0;
|
||||
|
@ -83,10 +90,12 @@ Metadata may include a fee to access the decryption key:
|
|||
required bytes address = 3;
|
||||
required float amount = 4;
|
||||
}
|
||||
```
|
||||
|
||||
## [Source](https://github.com/lbryio/lbryschema/blob/master/lbryschema/proto/source.proto)
|
||||
Streams have a `source` to download:
|
||||
|
||||
```protobuf
|
||||
message Source {
|
||||
enum Version {
|
||||
UNKNOWN_VERSION = 0;
|
||||
|
@ -101,12 +110,13 @@ Streams have a `source` to download:
|
|||
required bytes source = 3;
|
||||
required string contentType = 4;
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
|
||||
## [Certificate](https://github.com/lbryio/lbryschema/blob/master/lbryschema/proto/certificate.proto)
|
||||
Claims of certificateType have a `certificate`:
|
||||
|
||||
```protobuf
|
||||
message Certificate {
|
||||
enum Version {
|
||||
UNKNOWN_VERSION = 0;
|
||||
|
@ -116,10 +126,12 @@ Claims of certificateType have a `certificate`:
|
|||
required KeyType keyType = 2;
|
||||
required bytes publicKey = 4;
|
||||
}
|
||||
```
|
||||
|
||||
## [Signature](https://github.com/lbryio/lbryschema/blob/master/lbryschema/proto/signature.proto)
|
||||
Claims may be signed using the private key to a Certificate public key:
|
||||
|
||||
```protobuf
|
||||
message Signature {
|
||||
enum Version {
|
||||
UNKNOWN_VERSION = 0;
|
||||
|
@ -130,3 +142,4 @@ Claims may be signed using the private key to a Certificate public key:
|
|||
required bytes signature = 3;
|
||||
required bytes certificateId = 4;
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue