* Add core structure Sketch first version of da network handler * Added assgination module Added basic assignation trait * Added assgination module Added basic assignation trait * Refuse connection for non members * Use proper protocol name * Split in broadcast/dispersal/sampling modules Move behaviour and handler to broadcast * Remove unused broadcast behaviour attributes * Add basic docs * Remove unused pending errors on broadcast handler * Clippy happy * Refactor Broadcast -> Replication * Pipe message sending * Clippy happy * Clippy fmt * Refactor outgoing -> outgoing_events * Pipe out replication * Include subnetworks id in dispersal and replication messages * Pipe replication messaging * fmt * Fix tests
42 lines
632 B
Protocol Buffer
42 lines
632 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package nomos.da.v1.dispersal;
|
|
|
|
import "common.proto";
|
|
|
|
// DISPERSAL
|
|
|
|
message DispersalErr {
|
|
bytes blob_id = 1;
|
|
|
|
enum DispersalErrType {
|
|
CHUNK_SIZE = 0;
|
|
VERIFICATION = 1;
|
|
}
|
|
|
|
DispersalErrType err_type = 2;
|
|
string err_description = 3;
|
|
}
|
|
|
|
message DispersalReq {
|
|
common.Blob blob = 1;
|
|
uint32 subnetwork_id = 2;
|
|
}
|
|
|
|
message DispersalRes {
|
|
oneof message_type {
|
|
bytes blob_id = 1;
|
|
DispersalErr err = 2;
|
|
}
|
|
}
|
|
|
|
// WRAPPER MESSAGE
|
|
|
|
message Message {
|
|
oneof message_type {
|
|
DispersalReq dispersal_req = 1;
|
|
DispersalRes dispersal_res = 2;
|
|
common.SessionReq session_req = 3;
|
|
}
|
|
}
|