2024-07-25 09:27:55 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package nomos.da.v1.dispersal;
|
|
|
|
|
|
|
|
import "common.proto";
|
|
|
|
|
|
|
|
// DISPERSAL
|
|
|
|
|
|
|
|
message DispersalErr {
|
2024-07-25 17:03:32 +00:00
|
|
|
bytes blob_id = 1;
|
2024-07-25 09:27:55 +00:00
|
|
|
|
2024-07-25 17:03:32 +00:00
|
|
|
enum DispersalErrType {
|
|
|
|
CHUNK_SIZE = 0;
|
|
|
|
VERIFICATION = 1;
|
|
|
|
}
|
2024-07-25 09:27:55 +00:00
|
|
|
|
2024-07-25 17:03:32 +00:00
|
|
|
DispersalErrType err_type = 2;
|
|
|
|
string err_description = 3;
|
2024-07-25 09:27:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message DispersalReq {
|
2024-07-25 17:03:32 +00:00
|
|
|
common.Blob blob = 1;
|
|
|
|
uint32 subnetwork_id = 2;
|
2024-07-25 09:27:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message DispersalRes {
|
2024-07-25 17:03:32 +00:00
|
|
|
oneof message_type {
|
|
|
|
bytes blob_id = 1;
|
|
|
|
DispersalErr err = 2;
|
|
|
|
}
|
2024-07-25 09:27:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// WRAPPER MESSAGE
|
|
|
|
|
|
|
|
message Message {
|
2024-07-25 17:03:32 +00:00
|
|
|
oneof message_type {
|
|
|
|
DispersalReq dispersal_req = 1;
|
|
|
|
DispersalRes dispersal_res = 2;
|
|
|
|
common.SessionReq session_req = 3;
|
|
|
|
}
|
2024-07-25 09:27:55 +00:00
|
|
|
}
|