diff --git a/api/grpc/node/node.pb.go b/api/grpc/node/node.pb.go index 06a59e7ed8..ebfd8c58eb 100644 --- a/api/grpc/node/node.pb.go +++ b/api/grpc/node/node.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 -// protoc v3.12.4 +// protoc v4.23.4 // source: node/node.proto package node @@ -21,57 +21,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Describes how the chunks above are encoded. -// If not specified, it’s treated as GOB. -type RetrieveChunksReply_ChunkEncoding int32 - -const ( - RetrieveChunksReply_UNKNOWN RetrieveChunksReply_ChunkEncoding = 0 - RetrieveChunksReply_GOB RetrieveChunksReply_ChunkEncoding = 1 - RetrieveChunksReply_GNARK RetrieveChunksReply_ChunkEncoding = 2 -) - -// Enum value maps for RetrieveChunksReply_ChunkEncoding. -var ( - RetrieveChunksReply_ChunkEncoding_name = map[int32]string{ - 0: "UNKNOWN", - 1: "GOB", - 2: "GNARK", - } - RetrieveChunksReply_ChunkEncoding_value = map[string]int32{ - "UNKNOWN": 0, - "GOB": 1, - "GNARK": 2, - } -) - -func (x RetrieveChunksReply_ChunkEncoding) Enum() *RetrieveChunksReply_ChunkEncoding { - p := new(RetrieveChunksReply_ChunkEncoding) - *p = x - return p -} - -func (x RetrieveChunksReply_ChunkEncoding) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (RetrieveChunksReply_ChunkEncoding) Descriptor() protoreflect.EnumDescriptor { - return file_node_node_proto_enumTypes[0].Descriptor() -} - -func (RetrieveChunksReply_ChunkEncoding) Type() protoreflect.EnumType { - return &file_node_node_proto_enumTypes[0] -} - -func (x RetrieveChunksReply_ChunkEncoding) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use RetrieveChunksReply_ChunkEncoding.Descriptor instead. -func (RetrieveChunksReply_ChunkEncoding) EnumDescriptor() ([]byte, []int) { - return file_node_node_proto_rawDescGZIP(), []int{3, 0} -} - type StoreChunksRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -254,8 +203,7 @@ type RetrieveChunksReply struct { unknownFields protoimpl.UnknownFields // All chunks the Node is storing for the requested blob per RetrieveChunksRequest. - Chunks [][]byte `protobuf:"bytes,1,rep,name=chunks,proto3" json:"chunks,omitempty"` - Encoding RetrieveChunksReply_ChunkEncoding `protobuf:"varint,2,opt,name=encoding,proto3,enum=node.RetrieveChunksReply_ChunkEncoding" json:"encoding,omitempty"` + Chunks [][]byte `protobuf:"bytes,1,rep,name=chunks,proto3" json:"chunks,omitempty"` } func (x *RetrieveChunksReply) Reset() { @@ -297,13 +245,6 @@ func (x *RetrieveChunksReply) GetChunks() [][]byte { return nil } -func (x *RetrieveChunksReply) GetEncoding() RetrieveChunksReply_ChunkEncoding { - if x != nil { - return x.Encoding - } - return RetrieveChunksReply_UNKNOWN -} - // See RetrieveChunksRequest for documentation of each parameter of GetBlobHeaderRequest. type GetBlobHeaderRequest struct { state protoimpl.MessageState @@ -561,8 +502,6 @@ type Bundle struct { // Each chunk corresponds to a collection of points on the polynomial. // Each chunk has same number of points. Chunks [][]byte `protobuf:"bytes,1,rep,name=chunks,proto3" json:"chunks,omitempty"` - // All chunks of the bundle encoded in an byte array. - Bundle []byte `protobuf:"bytes,2,opt,name=bundle,proto3" json:"bundle,omitempty"` } func (x *Bundle) Reset() { @@ -604,13 +543,6 @@ func (x *Bundle) GetChunks() [][]byte { return nil } -func (x *Bundle) GetBundle() []byte { - if x != nil { - return x.Bundle - } - return nil -} - type G2Commitment struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -944,46 +876,37 @@ var file_node_node_proto_rawDesc = []byte{ 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x62, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x62, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x71, 0x75, 0x6f, 0x72, 0x75, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x08, 0x71, 0x75, 0x6f, 0x72, 0x75, 0x6d, 0x49, 0x64, 0x22, 0xa4, 0x01, - 0x0a, 0x13, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x73, - 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x12, 0x43, 0x0a, - 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x27, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x43, - 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, - 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, - 0x6e, 0x67, 0x22, 0x30, 0x0a, 0x0d, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x45, 0x6e, 0x63, 0x6f, 0x64, - 0x69, 0x6e, 0x67, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, - 0x12, 0x07, 0x0a, 0x03, 0x47, 0x4f, 0x42, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x4e, 0x41, - 0x52, 0x4b, 0x10, 0x02, 0x22, 0x7e, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x48, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x11, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x68, 0x61, 0x73, - 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x48, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x62, - 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x62, 0x6c, - 0x6f, 0x62, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x71, 0x75, 0x6f, 0x72, 0x75, - 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x71, 0x75, 0x6f, 0x72, - 0x75, 0x6d, 0x49, 0x64, 0x22, 0x70, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x48, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x31, 0x0a, 0x0b, 0x62, 0x6c, - 0x6f, 0x62, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x10, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x48, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x52, 0x0a, 0x62, 0x6c, 0x6f, 0x62, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x27, 0x0a, - 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6e, - 0x6f, 0x64, 0x65, 0x2e, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, - 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x22, 0x3b, 0x0a, 0x0b, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, - 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x12, 0x14, 0x0a, - 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x22, 0x58, 0x0a, 0x04, 0x42, 0x6c, 0x6f, 0x62, 0x12, 0x28, 0x0a, 0x06, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6e, 0x6f, - 0x64, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x07, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x07, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x22, 0x38, 0x0a, - 0x06, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x12, - 0x16, 0x0a, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x5a, 0x0a, 0x0c, 0x47, 0x32, 0x43, 0x6f, 0x6d, + 0x01, 0x28, 0x0d, 0x52, 0x08, 0x71, 0x75, 0x6f, 0x72, 0x75, 0x6d, 0x49, 0x64, 0x22, 0x2d, 0x0a, + 0x13, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x52, + 0x65, 0x70, 0x6c, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x22, 0x7e, 0x0a, 0x14, + 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x68, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x61, 0x73, 0x68, + 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x62, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x62, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, + 0x1b, 0x0a, 0x09, 0x71, 0x75, 0x6f, 0x72, 0x75, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x08, 0x71, 0x75, 0x6f, 0x72, 0x75, 0x6d, 0x49, 0x64, 0x22, 0x70, 0x0a, 0x12, + 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x70, + 0x6c, 0x79, 0x12, 0x31, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x62, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x42, + 0x6c, 0x6f, 0x62, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0a, 0x62, 0x6c, 0x6f, 0x62, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x4d, 0x65, 0x72, 0x6b, + 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x22, 0x3b, + 0x0a, 0x0b, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x16, 0x0a, + 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x68, + 0x61, 0x73, 0x68, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x58, 0x0a, 0x04, 0x42, + 0x6c, 0x6f, 0x62, 0x12, 0x28, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x26, 0x0a, + 0x07, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x07, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x22, 0x20, 0x0a, 0x06, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, + 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x22, 0x5a, 0x0a, 0x0c, 0x47, 0x32, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x11, 0x0a, 0x04, 0x78, 0x5f, 0x61, 0x30, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x78, 0x41, 0x30, 0x12, 0x11, 0x0a, 0x04, 0x78, 0x5f, 0x61, 0x31, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x78, 0x41, 0x31, 0x12, 0x11, 0x0a, @@ -1061,48 +984,45 @@ func file_node_node_proto_rawDescGZIP() []byte { return file_node_node_proto_rawDescData } -var file_node_node_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_node_node_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_node_node_proto_goTypes = []interface{}{ - (RetrieveChunksReply_ChunkEncoding)(0), // 0: node.RetrieveChunksReply.ChunkEncoding - (*StoreChunksRequest)(nil), // 1: node.StoreChunksRequest - (*StoreChunksReply)(nil), // 2: node.StoreChunksReply - (*RetrieveChunksRequest)(nil), // 3: node.RetrieveChunksRequest - (*RetrieveChunksReply)(nil), // 4: node.RetrieveChunksReply - (*GetBlobHeaderRequest)(nil), // 5: node.GetBlobHeaderRequest - (*GetBlobHeaderReply)(nil), // 6: node.GetBlobHeaderReply - (*MerkleProof)(nil), // 7: node.MerkleProof - (*Blob)(nil), // 8: node.Blob - (*Bundle)(nil), // 9: node.Bundle - (*G2Commitment)(nil), // 10: node.G2Commitment - (*BlobHeader)(nil), // 11: node.BlobHeader - (*BlobQuorumInfo)(nil), // 12: node.BlobQuorumInfo - (*BatchHeader)(nil), // 13: node.BatchHeader - (*common.G1Commitment)(nil), // 14: common.G1Commitment + (*StoreChunksRequest)(nil), // 0: node.StoreChunksRequest + (*StoreChunksReply)(nil), // 1: node.StoreChunksReply + (*RetrieveChunksRequest)(nil), // 2: node.RetrieveChunksRequest + (*RetrieveChunksReply)(nil), // 3: node.RetrieveChunksReply + (*GetBlobHeaderRequest)(nil), // 4: node.GetBlobHeaderRequest + (*GetBlobHeaderReply)(nil), // 5: node.GetBlobHeaderReply + (*MerkleProof)(nil), // 6: node.MerkleProof + (*Blob)(nil), // 7: node.Blob + (*Bundle)(nil), // 8: node.Bundle + (*G2Commitment)(nil), // 9: node.G2Commitment + (*BlobHeader)(nil), // 10: node.BlobHeader + (*BlobQuorumInfo)(nil), // 11: node.BlobQuorumInfo + (*BatchHeader)(nil), // 12: node.BatchHeader + (*common.G1Commitment)(nil), // 13: common.G1Commitment } var file_node_node_proto_depIdxs = []int32{ - 13, // 0: node.StoreChunksRequest.batch_header:type_name -> node.BatchHeader - 8, // 1: node.StoreChunksRequest.blobs:type_name -> node.Blob - 0, // 2: node.RetrieveChunksReply.encoding:type_name -> node.RetrieveChunksReply.ChunkEncoding - 11, // 3: node.GetBlobHeaderReply.blob_header:type_name -> node.BlobHeader - 7, // 4: node.GetBlobHeaderReply.proof:type_name -> node.MerkleProof - 11, // 5: node.Blob.header:type_name -> node.BlobHeader - 9, // 6: node.Blob.bundles:type_name -> node.Bundle - 14, // 7: node.BlobHeader.commitment:type_name -> common.G1Commitment - 10, // 8: node.BlobHeader.length_commitment:type_name -> node.G2Commitment - 10, // 9: node.BlobHeader.length_proof:type_name -> node.G2Commitment - 12, // 10: node.BlobHeader.quorum_headers:type_name -> node.BlobQuorumInfo - 1, // 11: node.Dispersal.StoreChunks:input_type -> node.StoreChunksRequest - 3, // 12: node.Retrieval.RetrieveChunks:input_type -> node.RetrieveChunksRequest - 5, // 13: node.Retrieval.GetBlobHeader:input_type -> node.GetBlobHeaderRequest - 2, // 14: node.Dispersal.StoreChunks:output_type -> node.StoreChunksReply - 4, // 15: node.Retrieval.RetrieveChunks:output_type -> node.RetrieveChunksReply - 6, // 16: node.Retrieval.GetBlobHeader:output_type -> node.GetBlobHeaderReply - 14, // [14:17] is the sub-list for method output_type - 11, // [11:14] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name + 12, // 0: node.StoreChunksRequest.batch_header:type_name -> node.BatchHeader + 7, // 1: node.StoreChunksRequest.blobs:type_name -> node.Blob + 10, // 2: node.GetBlobHeaderReply.blob_header:type_name -> node.BlobHeader + 6, // 3: node.GetBlobHeaderReply.proof:type_name -> node.MerkleProof + 10, // 4: node.Blob.header:type_name -> node.BlobHeader + 8, // 5: node.Blob.bundles:type_name -> node.Bundle + 13, // 6: node.BlobHeader.commitment:type_name -> common.G1Commitment + 9, // 7: node.BlobHeader.length_commitment:type_name -> node.G2Commitment + 9, // 8: node.BlobHeader.length_proof:type_name -> node.G2Commitment + 11, // 9: node.BlobHeader.quorum_headers:type_name -> node.BlobQuorumInfo + 0, // 10: node.Dispersal.StoreChunks:input_type -> node.StoreChunksRequest + 2, // 11: node.Retrieval.RetrieveChunks:input_type -> node.RetrieveChunksRequest + 4, // 12: node.Retrieval.GetBlobHeader:input_type -> node.GetBlobHeaderRequest + 1, // 13: node.Dispersal.StoreChunks:output_type -> node.StoreChunksReply + 3, // 14: node.Retrieval.RetrieveChunks:output_type -> node.RetrieveChunksReply + 5, // 15: node.Retrieval.GetBlobHeader:output_type -> node.GetBlobHeaderReply + 13, // [13:16] is the sub-list for method output_type + 10, // [10:13] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name } func init() { file_node_node_proto_init() } @@ -1273,14 +1193,13 @@ func file_node_node_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_node_node_proto_rawDesc, - NumEnums: 1, + NumEnums: 0, NumMessages: 13, NumExtensions: 0, NumServices: 2, }, GoTypes: file_node_node_proto_goTypes, DependencyIndexes: file_node_node_proto_depIdxs, - EnumInfos: file_node_node_proto_enumTypes, MessageInfos: file_node_node_proto_msgTypes, }.Build() File_node_node_proto = out.File diff --git a/api/grpc/node/node_grpc.pb.go b/api/grpc/node/node_grpc.pb.go index 369c358a11..0dcf6f0eb4 100644 --- a/api/grpc/node/node_grpc.pb.go +++ b/api/grpc/node/node_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.12.4 +// - protoc-gen-go-grpc v1.3.0 +// - protoc v4.23.4 // source: node/node.proto package node @@ -18,6 +18,10 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Dispersal_StoreChunks_FullMethodName = "/node.Dispersal/StoreChunks" +) + // DispersalClient is the client API for Dispersal service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -41,7 +45,7 @@ func NewDispersalClient(cc grpc.ClientConnInterface) DispersalClient { func (c *dispersalClient) StoreChunks(ctx context.Context, in *StoreChunksRequest, opts ...grpc.CallOption) (*StoreChunksReply, error) { out := new(StoreChunksReply) - err := c.cc.Invoke(ctx, "/node.Dispersal/StoreChunks", in, out, opts...) + err := c.cc.Invoke(ctx, Dispersal_StoreChunks_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -92,7 +96,7 @@ func _Dispersal_StoreChunks_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/node.Dispersal/StoreChunks", + FullMethod: Dispersal_StoreChunks_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DispersalServer).StoreChunks(ctx, req.(*StoreChunksRequest)) @@ -116,13 +120,18 @@ var Dispersal_ServiceDesc = grpc.ServiceDesc{ Metadata: "node/node.proto", } +const ( + Retrieval_RetrieveChunks_FullMethodName = "/node.Retrieval/RetrieveChunks" + Retrieval_GetBlobHeader_FullMethodName = "/node.Retrieval/GetBlobHeader" +) + // RetrievalClient is the client API for Retrieval service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type RetrievalClient interface { // RetrieveChunks retrieves the chunks for a blob custodied at the Node. RetrieveChunks(ctx context.Context, in *RetrieveChunksRequest, opts ...grpc.CallOption) (*RetrieveChunksReply, error) - // GetBlobHeader is similar to RetrieveChunks, this just returns the header of the blob. + // Similar to RetrieveChunks, this just returns the header of the blob. GetBlobHeader(ctx context.Context, in *GetBlobHeaderRequest, opts ...grpc.CallOption) (*GetBlobHeaderReply, error) } @@ -136,7 +145,7 @@ func NewRetrievalClient(cc grpc.ClientConnInterface) RetrievalClient { func (c *retrievalClient) RetrieveChunks(ctx context.Context, in *RetrieveChunksRequest, opts ...grpc.CallOption) (*RetrieveChunksReply, error) { out := new(RetrieveChunksReply) - err := c.cc.Invoke(ctx, "/node.Retrieval/RetrieveChunks", in, out, opts...) + err := c.cc.Invoke(ctx, Retrieval_RetrieveChunks_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -145,7 +154,7 @@ func (c *retrievalClient) RetrieveChunks(ctx context.Context, in *RetrieveChunks func (c *retrievalClient) GetBlobHeader(ctx context.Context, in *GetBlobHeaderRequest, opts ...grpc.CallOption) (*GetBlobHeaderReply, error) { out := new(GetBlobHeaderReply) - err := c.cc.Invoke(ctx, "/node.Retrieval/GetBlobHeader", in, out, opts...) + err := c.cc.Invoke(ctx, Retrieval_GetBlobHeader_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -158,7 +167,7 @@ func (c *retrievalClient) GetBlobHeader(ctx context.Context, in *GetBlobHeaderRe type RetrievalServer interface { // RetrieveChunks retrieves the chunks for a blob custodied at the Node. RetrieveChunks(context.Context, *RetrieveChunksRequest) (*RetrieveChunksReply, error) - // GetBlobHeader is similar to RetrieveChunks, this just returns the header of the blob. + // Similar to RetrieveChunks, this just returns the header of the blob. GetBlobHeader(context.Context, *GetBlobHeaderRequest) (*GetBlobHeaderReply, error) mustEmbedUnimplementedRetrievalServer() } @@ -196,7 +205,7 @@ func _Retrieval_RetrieveChunks_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/node.Retrieval/RetrieveChunks", + FullMethod: Retrieval_RetrieveChunks_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RetrievalServer).RetrieveChunks(ctx, req.(*RetrieveChunksRequest)) @@ -214,7 +223,7 @@ func _Retrieval_GetBlobHeader_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/node.Retrieval/GetBlobHeader", + FullMethod: Retrieval_GetBlobHeader_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RetrievalServer).GetBlobHeader(ctx, req.(*GetBlobHeaderRequest))