2019-01-24 20:15:10 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
2018-11-30 15:02:01 +00:00
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
option go_package = "pb";
|
|
|
|
|
|
|
|
package streams;
|
|
|
|
|
|
|
|
message SegmentMeta {
|
|
|
|
bytes encrypted_key = 1;
|
|
|
|
bytes key_nonce = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message StreamInfo {
|
2019-08-22 22:15:58 +01:00
|
|
|
int64 deprecated_number_of_segments = 1;
|
2018-11-30 15:02:01 +00:00
|
|
|
int64 segments_size = 2;
|
|
|
|
int64 last_segment_size = 3;
|
|
|
|
bytes metadata = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message StreamMeta {
|
|
|
|
bytes encrypted_stream_info = 1;
|
|
|
|
int32 encryption_type = 2;
|
|
|
|
int32 encryption_block_size = 3;
|
|
|
|
SegmentMeta last_segment_meta = 4;
|
2019-08-22 22:15:58 +01:00
|
|
|
int64 number_of_segments = 5;
|
2018-11-30 15:02:01 +00:00
|
|
|
}
|