diff --git a/autogen/go/monitor/monitor.pb.go b/autogen/go/monitor/monitor.pb.go index 302f9d9..be27e40 100644 --- a/autogen/go/monitor/monitor.pb.go +++ b/autogen/go/monitor/monitor.pb.go @@ -1,28 +1,33 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.21.0 +// protoc v3.11.4 // source: monitor.proto package monitor import ( context "context" - fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type Level int32 @@ -33,459 +38,720 @@ const ( Level_PANIC Level = 3 ) -var Level_name = map[int32]string{ - 0: "WARN", - 1: "ERROR", - 2: "FATAL", - 3: "PANIC", -} +// Enum value maps for Level. +var ( + Level_name = map[int32]string{ + 0: "WARN", + 1: "ERROR", + 2: "FATAL", + 3: "PANIC", + } + Level_value = map[string]int32{ + "WARN": 0, + "ERROR": 1, + "FATAL": 2, + "PANIC": 3, + } +) -var Level_value = map[string]int32{ - "WARN": 0, - "ERROR": 1, - "FATAL": 2, - "PANIC": 3, +func (x Level) Enum() *Level { + p := new(Level) + *p = x + return p } func (x Level) String() string { - return proto.EnumName(Level_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (Level) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_44174b7b2a306b71, []int{0} +func (Level) Descriptor() protoreflect.EnumDescriptor { + return file_monitor_proto_enumTypes[0].Descriptor() } -type SemverRequest struct { - Major uint32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"` - Minor uint32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"` - Patch uint32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (Level) Type() protoreflect.EnumType { + return &file_monitor_proto_enumTypes[0] } -func (m *SemverRequest) Reset() { *m = SemverRequest{} } -func (m *SemverRequest) String() string { return proto.CompactTextString(m) } -func (*SemverRequest) ProtoMessage() {} -func (*SemverRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_44174b7b2a306b71, []int{0} +func (x Level) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *SemverRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SemverRequest.Unmarshal(m, b) + +// Deprecated: Use Level.Descriptor instead. +func (Level) EnumDescriptor() ([]byte, []int) { + return file_monitor_proto_rawDescGZIP(), []int{0} } -func (m *SemverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SemverRequest.Marshal(b, m, deterministic) + +type SemverRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Major uint32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"` + Minor uint32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"` + Patch uint32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"` } -func (m *SemverRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SemverRequest.Merge(m, src) + +func (x *SemverRequest) Reset() { + *x = SemverRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_monitor_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SemverRequest) XXX_Size() int { - return xxx_messageInfo_SemverRequest.Size(m) + +func (x *SemverRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SemverRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SemverRequest.DiscardUnknown(m) + +func (*SemverRequest) ProtoMessage() {} + +func (x *SemverRequest) ProtoReflect() protoreflect.Message { + mi := &file_monitor_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SemverRequest proto.InternalMessageInfo +// Deprecated: Use SemverRequest.ProtoReflect.Descriptor instead. +func (*SemverRequest) Descriptor() ([]byte, []int) { + return file_monitor_proto_rawDescGZIP(), []int{0} +} -func (m *SemverRequest) GetMajor() uint32 { - if m != nil { - return m.Major +func (x *SemverRequest) GetMajor() uint32 { + if x != nil { + return x.Major } return 0 } -func (m *SemverRequest) GetMinor() uint32 { - if m != nil { - return m.Minor +func (x *SemverRequest) GetMinor() uint32 { + if x != nil { + return x.Minor } return 0 } -func (m *SemverRequest) GetPatch() uint32 { - if m != nil { - return m.Patch +func (x *SemverRequest) GetPatch() uint32 { + if x != nil { + return x.Patch } return 0 } type SlowdownAlert struct { - TimeSinceLastBlockSec uint32 `protobuf:"varint,1,opt,name=timeSinceLastBlockSec,proto3" json:"timeSinceLastBlockSec,omitempty"` - LastKnownHeight uint64 `protobuf:"varint,2,opt,name=lastKnownHeight,proto3" json:"lastKnownHeight,omitempty"` - LastKnownHash []byte `protobuf:"bytes,3,opt,name=lastKnownHash,proto3" json:"lastKnownHash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SlowdownAlert) Reset() { *m = SlowdownAlert{} } -func (m *SlowdownAlert) String() string { return proto.CompactTextString(m) } -func (*SlowdownAlert) ProtoMessage() {} -func (*SlowdownAlert) Descriptor() ([]byte, []int) { - return fileDescriptor_44174b7b2a306b71, []int{1} -} -func (m *SlowdownAlert) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SlowdownAlert.Unmarshal(m, b) -} -func (m *SlowdownAlert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SlowdownAlert.Marshal(b, m, deterministic) + TimeSinceLastBlockSec uint32 `protobuf:"varint,1,opt,name=timeSinceLastBlockSec,proto3" json:"timeSinceLastBlockSec,omitempty"` + LastKnownHeight uint64 `protobuf:"varint,2,opt,name=lastKnownHeight,proto3" json:"lastKnownHeight,omitempty"` + LastKnownHash []byte `protobuf:"bytes,3,opt,name=lastKnownHash,proto3" json:"lastKnownHash,omitempty"` } -func (m *SlowdownAlert) XXX_Merge(src proto.Message) { - xxx_messageInfo_SlowdownAlert.Merge(m, src) + +func (x *SlowdownAlert) Reset() { + *x = SlowdownAlert{} + if protoimpl.UnsafeEnabled { + mi := &file_monitor_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SlowdownAlert) XXX_Size() int { - return xxx_messageInfo_SlowdownAlert.Size(m) + +func (x *SlowdownAlert) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SlowdownAlert) XXX_DiscardUnknown() { - xxx_messageInfo_SlowdownAlert.DiscardUnknown(m) + +func (*SlowdownAlert) ProtoMessage() {} + +func (x *SlowdownAlert) ProtoReflect() protoreflect.Message { + mi := &file_monitor_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SlowdownAlert proto.InternalMessageInfo +// Deprecated: Use SlowdownAlert.ProtoReflect.Descriptor instead. +func (*SlowdownAlert) Descriptor() ([]byte, []int) { + return file_monitor_proto_rawDescGZIP(), []int{1} +} -func (m *SlowdownAlert) GetTimeSinceLastBlockSec() uint32 { - if m != nil { - return m.TimeSinceLastBlockSec +func (x *SlowdownAlert) GetTimeSinceLastBlockSec() uint32 { + if x != nil { + return x.TimeSinceLastBlockSec } return 0 } -func (m *SlowdownAlert) GetLastKnownHeight() uint64 { - if m != nil { - return m.LastKnownHeight +func (x *SlowdownAlert) GetLastKnownHeight() uint64 { + if x != nil { + return x.LastKnownHeight } return 0 } -func (m *SlowdownAlert) GetLastKnownHash() []byte { - if m != nil { - return m.LastKnownHash +func (x *SlowdownAlert) GetLastKnownHash() []byte { + if x != nil { + return x.LastKnownHash } return nil } type Field struct { - Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Field) Reset() { *m = Field{} } -func (m *Field) String() string { return proto.CompactTextString(m) } -func (*Field) ProtoMessage() {} -func (*Field) Descriptor() ([]byte, []int) { - return fileDescriptor_44174b7b2a306b71, []int{2} -} -func (m *Field) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Field.Unmarshal(m, b) -} -func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Field.Marshal(b, m, deterministic) + Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -func (m *Field) XXX_Merge(src proto.Message) { - xxx_messageInfo_Field.Merge(m, src) + +func (x *Field) Reset() { + *x = Field{} + if protoimpl.UnsafeEnabled { + mi := &file_monitor_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Field) XXX_Size() int { - return xxx_messageInfo_Field.Size(m) + +func (x *Field) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Field) XXX_DiscardUnknown() { - xxx_messageInfo_Field.DiscardUnknown(m) + +func (*Field) ProtoMessage() {} + +func (x *Field) ProtoReflect() protoreflect.Message { + mi := &file_monitor_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Field proto.InternalMessageInfo +// Deprecated: Use Field.ProtoReflect.Descriptor instead. +func (*Field) Descriptor() ([]byte, []int) { + return file_monitor_proto_rawDescGZIP(), []int{2} +} -func (m *Field) GetField() string { - if m != nil { - return m.Field +func (x *Field) GetField() string { + if x != nil { + return x.Field } return "" } -func (m *Field) GetValue() string { - if m != nil { - return m.Value +func (x *Field) GetValue() string { + if x != nil { + return x.Value } return "" } type ErrorAlert struct { - Level Level `protobuf:"varint,1,opt,name=level,proto3,enum=monitor.Level" json:"level,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - TimestampMillis string `protobuf:"bytes,3,opt,name=timestampMillis,proto3" json:"timestampMillis,omitempty"` - File string `protobuf:"bytes,4,opt,name=file,proto3" json:"file,omitempty"` - Line uint32 `protobuf:"varint,5,opt,name=line,proto3" json:"line,omitempty"` - Function string `protobuf:"bytes,6,opt,name=function,proto3" json:"function,omitempty"` - Fields []*Field `protobuf:"bytes,7,rep,name=fields,proto3" json:"fields,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ErrorAlert) Reset() { *m = ErrorAlert{} } -func (m *ErrorAlert) String() string { return proto.CompactTextString(m) } -func (*ErrorAlert) ProtoMessage() {} -func (*ErrorAlert) Descriptor() ([]byte, []int) { - return fileDescriptor_44174b7b2a306b71, []int{3} -} -func (m *ErrorAlert) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ErrorAlert.Unmarshal(m, b) -} -func (m *ErrorAlert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ErrorAlert.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Level Level `protobuf:"varint,1,opt,name=level,proto3,enum=monitor.Level" json:"level,omitempty"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` + TimestampMillis string `protobuf:"bytes,3,opt,name=timestampMillis,proto3" json:"timestampMillis,omitempty"` //Jan _2 15:04:05.000 + File string `protobuf:"bytes,4,opt,name=file,proto3" json:"file,omitempty"` + Line uint32 `protobuf:"varint,5,opt,name=line,proto3" json:"line,omitempty"` + Function string `protobuf:"bytes,6,opt,name=function,proto3" json:"function,omitempty"` + Fields []*Field `protobuf:"bytes,7,rep,name=fields,proto3" json:"fields,omitempty"` } -func (m *ErrorAlert) XXX_Merge(src proto.Message) { - xxx_messageInfo_ErrorAlert.Merge(m, src) + +func (x *ErrorAlert) Reset() { + *x = ErrorAlert{} + if protoimpl.UnsafeEnabled { + mi := &file_monitor_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ErrorAlert) XXX_Size() int { - return xxx_messageInfo_ErrorAlert.Size(m) + +func (x *ErrorAlert) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ErrorAlert) XXX_DiscardUnknown() { - xxx_messageInfo_ErrorAlert.DiscardUnknown(m) + +func (*ErrorAlert) ProtoMessage() {} + +func (x *ErrorAlert) ProtoReflect() protoreflect.Message { + mi := &file_monitor_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ErrorAlert proto.InternalMessageInfo +// Deprecated: Use ErrorAlert.ProtoReflect.Descriptor instead. +func (*ErrorAlert) Descriptor() ([]byte, []int) { + return file_monitor_proto_rawDescGZIP(), []int{3} +} -func (m *ErrorAlert) GetLevel() Level { - if m != nil { - return m.Level +func (x *ErrorAlert) GetLevel() Level { + if x != nil { + return x.Level } return Level_WARN } -func (m *ErrorAlert) GetMsg() string { - if m != nil { - return m.Msg +func (x *ErrorAlert) GetMsg() string { + if x != nil { + return x.Msg } return "" } -func (m *ErrorAlert) GetTimestampMillis() string { - if m != nil { - return m.TimestampMillis +func (x *ErrorAlert) GetTimestampMillis() string { + if x != nil { + return x.TimestampMillis } return "" } -func (m *ErrorAlert) GetFile() string { - if m != nil { - return m.File +func (x *ErrorAlert) GetFile() string { + if x != nil { + return x.File } return "" } -func (m *ErrorAlert) GetLine() uint32 { - if m != nil { - return m.Line +func (x *ErrorAlert) GetLine() uint32 { + if x != nil { + return x.Line } return 0 } -func (m *ErrorAlert) GetFunction() string { - if m != nil { - return m.Function +func (x *ErrorAlert) GetFunction() string { + if x != nil { + return x.Function } return "" } -func (m *ErrorAlert) GetFields() []*Field { - if m != nil { - return m.Fields +func (x *ErrorAlert) GetFields() []*Field { + if x != nil { + return x.Fields } return nil } type EmptyRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *EmptyRequest) Reset() { *m = EmptyRequest{} } -func (m *EmptyRequest) String() string { return proto.CompactTextString(m) } -func (*EmptyRequest) ProtoMessage() {} -func (*EmptyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_44174b7b2a306b71, []int{4} -} -func (m *EmptyRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EmptyRequest.Unmarshal(m, b) -} -func (m *EmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EmptyRequest.Marshal(b, m, deterministic) -} -func (m *EmptyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_EmptyRequest.Merge(m, src) -} -func (m *EmptyRequest) XXX_Size() int { - return xxx_messageInfo_EmptyRequest.Size(m) +func (x *EmptyRequest) Reset() { + *x = EmptyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_monitor_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *EmptyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_EmptyRequest.DiscardUnknown(m) + +func (x *EmptyRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_EmptyRequest proto.InternalMessageInfo +func (*EmptyRequest) ProtoMessage() {} -type EmptyResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *EmptyRequest) ProtoReflect() protoreflect.Message { + mi := &file_monitor_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *EmptyResponse) Reset() { *m = EmptyResponse{} } -func (m *EmptyResponse) String() string { return proto.CompactTextString(m) } -func (*EmptyResponse) ProtoMessage() {} -func (*EmptyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_44174b7b2a306b71, []int{5} -} -func (m *EmptyResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EmptyResponse.Unmarshal(m, b) -} -func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EmptyResponse.Marshal(b, m, deterministic) +// Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead. +func (*EmptyRequest) Descriptor() ([]byte, []int) { + return file_monitor_proto_rawDescGZIP(), []int{4} } -func (m *EmptyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_EmptyResponse.Merge(m, src) + +type EmptyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *EmptyResponse) XXX_Size() int { - return xxx_messageInfo_EmptyResponse.Size(m) + +func (x *EmptyResponse) Reset() { + *x = EmptyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_monitor_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *EmptyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_EmptyResponse.DiscardUnknown(m) + +func (x *EmptyResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_EmptyResponse proto.InternalMessageInfo +func (*EmptyResponse) ProtoMessage() {} -type BlockUpdate struct { - Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - TxAmount uint32 `protobuf:"varint,4,opt,name=txAmount,proto3" json:"txAmount,omitempty"` - BlockTimeSec uint32 `protobuf:"varint,5,opt,name=blockTimeSec,proto3" json:"blockTimeSec,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BlockUpdate) Reset() { *m = BlockUpdate{} } -func (m *BlockUpdate) String() string { return proto.CompactTextString(m) } -func (*BlockUpdate) ProtoMessage() {} -func (*BlockUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_44174b7b2a306b71, []int{6} +func (x *EmptyResponse) ProtoReflect() protoreflect.Message { + mi := &file_monitor_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *BlockUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BlockUpdate.Unmarshal(m, b) + +// Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead. +func (*EmptyResponse) Descriptor() ([]byte, []int) { + return file_monitor_proto_rawDescGZIP(), []int{5} } -func (m *BlockUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BlockUpdate.Marshal(b, m, deterministic) + +type BlockUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + TxAmount uint32 `protobuf:"varint,4,opt,name=txAmount,proto3" json:"txAmount,omitempty"` + BlockTimeSec uint32 `protobuf:"varint,5,opt,name=blockTimeSec,proto3" json:"blockTimeSec,omitempty"` } -func (m *BlockUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockUpdate.Merge(m, src) + +func (x *BlockUpdate) Reset() { + *x = BlockUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_monitor_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BlockUpdate) XXX_Size() int { - return xxx_messageInfo_BlockUpdate.Size(m) + +func (x *BlockUpdate) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BlockUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_BlockUpdate.DiscardUnknown(m) + +func (*BlockUpdate) ProtoMessage() {} + +func (x *BlockUpdate) ProtoReflect() protoreflect.Message { + mi := &file_monitor_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BlockUpdate proto.InternalMessageInfo +// Deprecated: Use BlockUpdate.ProtoReflect.Descriptor instead. +func (*BlockUpdate) Descriptor() ([]byte, []int) { + return file_monitor_proto_rawDescGZIP(), []int{6} +} -func (m *BlockUpdate) GetHeight() uint64 { - if m != nil { - return m.Height +func (x *BlockUpdate) GetHeight() uint64 { + if x != nil { + return x.Height } return 0 } -func (m *BlockUpdate) GetHash() []byte { - if m != nil { - return m.Hash +func (x *BlockUpdate) GetHash() []byte { + if x != nil { + return x.Hash } return nil } -func (m *BlockUpdate) GetTimestamp() int64 { - if m != nil { - return m.Timestamp +func (x *BlockUpdate) GetTimestamp() int64 { + if x != nil { + return x.Timestamp } return 0 } -func (m *BlockUpdate) GetTxAmount() uint32 { - if m != nil { - return m.TxAmount +func (x *BlockUpdate) GetTxAmount() uint32 { + if x != nil { + return x.TxAmount } return 0 } -func (m *BlockUpdate) GetBlockTimeSec() uint32 { - if m != nil { - return m.BlockTimeSec +func (x *BlockUpdate) GetBlockTimeSec() uint32 { + if x != nil { + return x.BlockTimeSec } return 0 } -func init() { - proto.RegisterEnum("monitor.Level", Level_name, Level_value) - proto.RegisterType((*SemverRequest)(nil), "monitor.SemverRequest") - proto.RegisterType((*SlowdownAlert)(nil), "monitor.SlowdownAlert") - proto.RegisterType((*Field)(nil), "monitor.Field") - proto.RegisterType((*ErrorAlert)(nil), "monitor.ErrorAlert") - proto.RegisterType((*EmptyRequest)(nil), "monitor.EmptyRequest") - proto.RegisterType((*EmptyResponse)(nil), "monitor.EmptyResponse") - proto.RegisterType((*BlockUpdate)(nil), "monitor.BlockUpdate") -} - -func init() { proto.RegisterFile("monitor.proto", fileDescriptor_44174b7b2a306b71) } - -var fileDescriptor_44174b7b2a306b71 = []byte{ - // 585 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xdb, 0x6e, 0xd3, 0x40, - 0x10, 0xad, 0xe3, 0x38, 0x6d, 0xa6, 0x75, 0x1a, 0x2d, 0x6d, 0x65, 0x55, 0x3c, 0x54, 0x56, 0x85, - 0x2a, 0x50, 0x1b, 0xa9, 0x45, 0x48, 0x48, 0xf0, 0xe0, 0xa0, 0x56, 0x45, 0xb4, 0x05, 0x36, 0x45, - 0x48, 0xbc, 0x39, 0xce, 0x26, 0x59, 0xba, 0xde, 0x35, 0xf6, 0xba, 0x21, 0x1f, 0x82, 0xf8, 0x1a, - 0x7e, 0x84, 0xaf, 0x41, 0x3b, 0x76, 0x9c, 0x8b, 0xa0, 0xbc, 0xcd, 0x39, 0xb3, 0xe3, 0x99, 0x73, - 0x66, 0xd7, 0xe0, 0xc6, 0x4a, 0x72, 0xad, 0xd2, 0x93, 0x24, 0x55, 0x5a, 0x91, 0xf5, 0x12, 0xfa, - 0x1f, 0xc1, 0xed, 0xb1, 0xf8, 0x9e, 0xa5, 0x94, 0x7d, 0xcb, 0x59, 0xa6, 0xc9, 0x0e, 0x38, 0x71, - 0xf8, 0x55, 0xa5, 0x9e, 0x75, 0x60, 0x1d, 0xb9, 0xb4, 0x00, 0xc8, 0x72, 0xa9, 0x52, 0xaf, 0x56, - 0xb2, 0x06, 0x18, 0x36, 0x09, 0x75, 0x34, 0xf6, 0xec, 0x82, 0x45, 0xe0, 0xff, 0xb0, 0xc0, 0xed, - 0x09, 0x35, 0x19, 0xa8, 0x89, 0x0c, 0x04, 0x4b, 0x35, 0x79, 0x0e, 0xbb, 0x9a, 0xc7, 0xac, 0xc7, - 0x65, 0xc4, 0xae, 0xc2, 0x4c, 0x77, 0x85, 0x8a, 0xee, 0x7a, 0x2c, 0x2a, 0x7b, 0xfc, 0x3d, 0x49, - 0x8e, 0x60, 0x5b, 0x84, 0x99, 0x7e, 0x27, 0xd5, 0x44, 0x5e, 0x32, 0x3e, 0x1a, 0x6b, 0xec, 0x5e, - 0xa7, 0xab, 0x34, 0x39, 0x04, 0x77, 0x4e, 0x85, 0x59, 0x31, 0xcf, 0x16, 0x5d, 0x26, 0xfd, 0x33, - 0x70, 0x2e, 0x38, 0x13, 0x03, 0x33, 0xf6, 0xd0, 0x04, 0xd8, 0xbe, 0x49, 0x0b, 0x60, 0xd8, 0xfb, - 0x50, 0xe4, 0x0c, 0x9b, 0x34, 0x69, 0x01, 0xfc, 0xdf, 0x16, 0xc0, 0x79, 0x9a, 0xaa, 0xb4, 0x50, - 0x72, 0x08, 0x8e, 0x60, 0xf7, 0x4c, 0x60, 0x69, 0xeb, 0xb4, 0x75, 0x32, 0xb3, 0xf5, 0xca, 0xb0, - 0xb4, 0x48, 0x92, 0x36, 0xd8, 0x71, 0x36, 0x2a, 0x3f, 0x64, 0x42, 0xa3, 0xc5, 0x88, 0xcc, 0x74, - 0x18, 0x27, 0xd7, 0x5c, 0x08, 0x9e, 0xe1, 0x8c, 0x4d, 0xba, 0x4a, 0x13, 0x02, 0xf5, 0x21, 0x17, - 0xcc, 0xab, 0x63, 0x1a, 0x63, 0xc3, 0x09, 0x2e, 0x99, 0xe7, 0xa0, 0x5d, 0x18, 0x93, 0x7d, 0xd8, - 0x18, 0xe6, 0x32, 0xd2, 0x5c, 0x49, 0xaf, 0x81, 0x67, 0x2b, 0x4c, 0x9e, 0x40, 0x03, 0x35, 0x65, - 0xde, 0xfa, 0x81, 0x7d, 0xb4, 0xb9, 0x30, 0x26, 0x1a, 0x40, 0xcb, 0xac, 0xdf, 0x82, 0xad, 0xf3, - 0x38, 0xd1, 0xd3, 0x72, 0xf7, 0xfe, 0x36, 0xb8, 0x25, 0xce, 0x12, 0x25, 0x33, 0xe6, 0xff, 0xb4, - 0x60, 0x13, 0xf7, 0xf1, 0x29, 0x19, 0x84, 0x9a, 0x91, 0x3d, 0x68, 0x8c, 0x8b, 0x4d, 0x58, 0xb8, - 0x89, 0x12, 0x99, 0x01, 0xc7, 0xc6, 0xf7, 0x1a, 0xfa, 0x8e, 0x31, 0x79, 0x0c, 0xcd, 0x4a, 0x1b, - 0x8a, 0xb5, 0xe9, 0x9c, 0x30, 0xe3, 0xeb, 0xef, 0x41, 0xac, 0x72, 0xa9, 0x51, 0xaa, 0x4b, 0x2b, - 0x4c, 0x7c, 0xd8, 0xea, 0x9b, 0xa6, 0xb7, 0xe6, 0x5a, 0xb0, 0xa8, 0x94, 0xbd, 0xc4, 0x3d, 0x3d, - 0x05, 0x07, 0x2d, 0x27, 0x1b, 0x50, 0xff, 0x1c, 0xd0, 0x9b, 0xf6, 0x1a, 0x69, 0x82, 0x73, 0x4e, - 0xe9, 0x7b, 0xda, 0xb6, 0x4c, 0x78, 0x11, 0xdc, 0x06, 0x57, 0xed, 0x9a, 0x09, 0x3f, 0x04, 0x37, - 0x6f, 0xdf, 0xb4, 0xed, 0xd3, 0x5f, 0x35, 0x58, 0xbf, 0x2e, 0x8c, 0x20, 0x2f, 0xc1, 0xb9, 0x64, - 0x42, 0x28, 0xb2, 0x57, 0x79, 0xb3, 0xf4, 0x0e, 0xf6, 0xe7, 0xfc, 0xb2, 0x25, 0x6b, 0xe4, 0x05, - 0xd8, 0xdd, 0x29, 0x23, 0xbb, 0xab, 0x07, 0xfe, 0x57, 0xf7, 0x1a, 0x36, 0x6f, 0x94, 0xe6, 0xc3, - 0x29, 0x3a, 0x4a, 0x76, 0xaa, 0x83, 0x0b, 0x0e, 0x3f, 0x50, 0xde, 0x85, 0x56, 0x51, 0x3e, 0x7b, - 0x5b, 0x8b, 0xa3, 0x2f, 0x3e, 0xb7, 0x07, 0xbe, 0xf1, 0x6a, 0x36, 0x02, 0x5e, 0x69, 0xf2, 0x68, - 0x7e, 0xb0, 0xba, 0xe2, 0xff, 0xae, 0xee, 0x1e, 0x7f, 0x79, 0x36, 0xe2, 0x7a, 0x9c, 0xf7, 0x4f, - 0x22, 0x15, 0x77, 0x06, 0x79, 0x76, 0x77, 0x8c, 0x7f, 0x93, 0x7e, 0x3e, 0xec, 0x84, 0xb9, 0x56, - 0x23, 0x26, 0x3b, 0x23, 0xd5, 0x29, 0xcb, 0xfb, 0x0d, 0x4c, 0x9e, 0xfd, 0x09, 0x00, 0x00, 0xff, - 0xff, 0x9f, 0xe1, 0x95, 0x0d, 0x7b, 0x04, 0x00, 0x00, +var File_monitor_proto protoreflect.FileDescriptor + +var file_monitor_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x07, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x22, 0x51, 0x0a, 0x0d, 0x53, 0x65, 0x6d, 0x76, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x6a, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x12, + 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, + 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x22, 0x95, 0x01, 0x0a, 0x0d, + 0x53, 0x6c, 0x6f, 0x77, 0x64, 0x6f, 0x77, 0x6e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x34, 0x0a, + 0x15, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x53, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x15, 0x74, 0x69, + 0x6d, 0x65, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x53, 0x65, 0x63, 0x12, 0x28, 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6c, 0x61, + 0x73, 0x74, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x24, 0x0a, + 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x48, 0x61, 0x73, 0x68, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x48, + 0x61, 0x73, 0x68, 0x22, 0x33, 0x0a, 0x05, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x0a, 0x05, + 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xda, 0x01, 0x0a, 0x0a, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x24, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, + 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x10, 0x0a, + 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, + 0x28, 0x0a, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, + 0x69, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x6c, 0x69, 0x6e, + 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, + 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, + 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x0e, 0x0a, 0x0c, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x0f, 0x0a, 0x0d, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, + 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x78, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x08, 0x74, 0x78, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0c, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, + 0x2a, 0x32, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x41, 0x52, + 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x09, + 0x0a, 0x05, 0x46, 0x41, 0x54, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x41, 0x4e, + 0x49, 0x43, 0x10, 0x03, 0x32, 0xbd, 0x02, 0x0a, 0x07, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, + 0x12, 0x39, 0x0a, 0x05, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, + 0x74, 0x6f, 0x72, 0x2e, 0x53, 0x65, 0x6d, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x03, 0x42, + 0x79, 0x65, 0x12, 0x15, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, + 0x74, 0x6f, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0b, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x12, 0x14, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, + 0x6f, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x53, 0x6c, 0x6f, 0x77, + 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x53, + 0x6c, 0x6f, 0x77, 0x64, 0x6f, 0x77, 0x6e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x1a, 0x16, 0x2e, 0x6d, + 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x13, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, + 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, 0x6b, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, + 0x74, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_monitor_proto_rawDescOnce sync.Once + file_monitor_proto_rawDescData = file_monitor_proto_rawDesc +) + +func file_monitor_proto_rawDescGZIP() []byte { + file_monitor_proto_rawDescOnce.Do(func() { + file_monitor_proto_rawDescData = protoimpl.X.CompressGZIP(file_monitor_proto_rawDescData) + }) + return file_monitor_proto_rawDescData +} + +var file_monitor_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_monitor_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_monitor_proto_goTypes = []interface{}{ + (Level)(0), // 0: monitor.Level + (*SemverRequest)(nil), // 1: monitor.SemverRequest + (*SlowdownAlert)(nil), // 2: monitor.SlowdownAlert + (*Field)(nil), // 3: monitor.Field + (*ErrorAlert)(nil), // 4: monitor.ErrorAlert + (*EmptyRequest)(nil), // 5: monitor.EmptyRequest + (*EmptyResponse)(nil), // 6: monitor.EmptyResponse + (*BlockUpdate)(nil), // 7: monitor.BlockUpdate +} +var file_monitor_proto_depIdxs = []int32{ + 0, // 0: monitor.ErrorAlert.level:type_name -> monitor.Level + 3, // 1: monitor.ErrorAlert.fields:type_name -> monitor.Field + 1, // 2: monitor.Monitor.Hello:input_type -> monitor.SemverRequest + 5, // 3: monitor.Monitor.Bye:input_type -> monitor.EmptyRequest + 7, // 4: monitor.Monitor.NotifyBlock:input_type -> monitor.BlockUpdate + 2, // 5: monitor.Monitor.NotifySlowdown:input_type -> monitor.SlowdownAlert + 4, // 6: monitor.Monitor.NotifyError:input_type -> monitor.ErrorAlert + 6, // 7: monitor.Monitor.Hello:output_type -> monitor.EmptyResponse + 6, // 8: monitor.Monitor.Bye:output_type -> monitor.EmptyResponse + 6, // 9: monitor.Monitor.NotifyBlock:output_type -> monitor.EmptyResponse + 6, // 10: monitor.Monitor.NotifySlowdown:output_type -> monitor.EmptyResponse + 6, // 11: monitor.Monitor.NotifyError:output_type -> monitor.EmptyResponse + 7, // [7:12] is the sub-list for method output_type + 2, // [2:7] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_monitor_proto_init() } +func file_monitor_proto_init() { + if File_monitor_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_monitor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SemverRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_monitor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SlowdownAlert); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_monitor_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Field); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_monitor_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ErrorAlert); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_monitor_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EmptyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_monitor_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EmptyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_monitor_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_monitor_proto_rawDesc, + NumEnums: 1, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_monitor_proto_goTypes, + DependencyIndexes: file_monitor_proto_depIdxs, + EnumInfos: file_monitor_proto_enumTypes, + MessageInfos: file_monitor_proto_msgTypes, + }.Build() + File_monitor_proto = out.File + file_monitor_proto_rawDesc = nil + file_monitor_proto_goTypes = nil + file_monitor_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // MonitorClient is the client API for Monitor service. // @@ -499,10 +765,10 @@ type MonitorClient interface { } type monitorClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewMonitorClient(cc *grpc.ClientConn) MonitorClient { +func NewMonitorClient(cc grpc.ClientConnInterface) MonitorClient { return &monitorClient{cc} } @@ -564,19 +830,19 @@ type MonitorServer interface { type UnimplementedMonitorServer struct { } -func (*UnimplementedMonitorServer) Hello(ctx context.Context, req *SemverRequest) (*EmptyResponse, error) { +func (*UnimplementedMonitorServer) Hello(context.Context, *SemverRequest) (*EmptyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Hello not implemented") } -func (*UnimplementedMonitorServer) Bye(ctx context.Context, req *EmptyRequest) (*EmptyResponse, error) { +func (*UnimplementedMonitorServer) Bye(context.Context, *EmptyRequest) (*EmptyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Bye not implemented") } -func (*UnimplementedMonitorServer) NotifyBlock(ctx context.Context, req *BlockUpdate) (*EmptyResponse, error) { +func (*UnimplementedMonitorServer) NotifyBlock(context.Context, *BlockUpdate) (*EmptyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NotifyBlock not implemented") } -func (*UnimplementedMonitorServer) NotifySlowdown(ctx context.Context, req *SlowdownAlert) (*EmptyResponse, error) { +func (*UnimplementedMonitorServer) NotifySlowdown(context.Context, *SlowdownAlert) (*EmptyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NotifySlowdown not implemented") } -func (*UnimplementedMonitorServer) NotifyError(ctx context.Context, req *ErrorAlert) (*EmptyResponse, error) { +func (*UnimplementedMonitorServer) NotifyError(context.Context, *ErrorAlert) (*EmptyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NotifyError not implemented") } diff --git a/autogen/go/node/mempool.pb.go b/autogen/go/node/mempool.pb.go index a32a8ae..705dbe6 100644 --- a/autogen/go/node/mempool.pb.go +++ b/autogen/go/node/mempool.pb.go @@ -1,24 +1,29 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.21.0 +// protoc v3.11.4 // source: mempool.proto package node import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - math "math" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type TxType int32 @@ -44,248 +49,411 @@ const ( TxType_WITHDRAWBID TxType = 7 ) -var TxType_name = map[int32]string{ - 0: "STANDARD", - 1: "DISTRIBUTE", - 2: "WITHDRAWFEES", - 3: "BID", - 4: "STAKE", - 5: "SLASH", - 6: "WITHDRAWSTAKE", - 7: "WITHDRAWBID", -} +// Enum value maps for TxType. +var ( + TxType_name = map[int32]string{ + 0: "STANDARD", + 1: "DISTRIBUTE", + 2: "WITHDRAWFEES", + 3: "BID", + 4: "STAKE", + 5: "SLASH", + 6: "WITHDRAWSTAKE", + 7: "WITHDRAWBID", + } + TxType_value = map[string]int32{ + "STANDARD": 0, + "DISTRIBUTE": 1, + "WITHDRAWFEES": 2, + "BID": 3, + "STAKE": 4, + "SLASH": 5, + "WITHDRAWSTAKE": 6, + "WITHDRAWBID": 7, + } +) -var TxType_value = map[string]int32{ - "STANDARD": 0, - "DISTRIBUTE": 1, - "WITHDRAWFEES": 2, - "BID": 3, - "STAKE": 4, - "SLASH": 5, - "WITHDRAWSTAKE": 6, - "WITHDRAWBID": 7, +func (x TxType) Enum() *TxType { + p := new(TxType) + *p = x + return p } func (x TxType) String() string { - return proto.EnumName(TxType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (TxType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a84c3667d8c2093a, []int{0} +func (TxType) Descriptor() protoreflect.EnumDescriptor { + return file_mempool_proto_enumTypes[0].Descriptor() } -type Tx struct { - Type TxType `protobuf:"varint,1,opt,name=type,proto3,enum=node.TxType" json:"type,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - LockTime uint64 `protobuf:"fixed64,3,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (TxType) Type() protoreflect.EnumType { + return &file_mempool_proto_enumTypes[0] } -func (m *Tx) Reset() { *m = Tx{} } -func (m *Tx) String() string { return proto.CompactTextString(m) } -func (*Tx) ProtoMessage() {} -func (*Tx) Descriptor() ([]byte, []int) { - return fileDescriptor_a84c3667d8c2093a, []int{0} +func (x TxType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *Tx) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Tx.Unmarshal(m, b) + +// Deprecated: Use TxType.Descriptor instead. +func (TxType) EnumDescriptor() ([]byte, []int) { + return file_mempool_proto_rawDescGZIP(), []int{0} } -func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Tx.Marshal(b, m, deterministic) + +type Tx struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type TxType `protobuf:"varint,1,opt,name=type,proto3,enum=node.TxType" json:"type,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + LockTime uint64 `protobuf:"fixed64,3,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` } -func (m *Tx) XXX_Merge(src proto.Message) { - xxx_messageInfo_Tx.Merge(m, src) + +func (x *Tx) Reset() { + *x = Tx{} + if protoimpl.UnsafeEnabled { + mi := &file_mempool_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Tx) XXX_Size() int { - return xxx_messageInfo_Tx.Size(m) + +func (x *Tx) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Tx) XXX_DiscardUnknown() { - xxx_messageInfo_Tx.DiscardUnknown(m) + +func (*Tx) ProtoMessage() {} + +func (x *Tx) ProtoReflect() protoreflect.Message { + mi := &file_mempool_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Tx proto.InternalMessageInfo +// Deprecated: Use Tx.ProtoReflect.Descriptor instead. +func (*Tx) Descriptor() ([]byte, []int) { + return file_mempool_proto_rawDescGZIP(), []int{0} +} -func (m *Tx) GetType() TxType { - if m != nil { - return m.Type +func (x *Tx) GetType() TxType { + if x != nil { + return x.Type } return TxType_STANDARD } -func (m *Tx) GetId() string { - if m != nil { - return m.Id +func (x *Tx) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Tx) GetLockTime() uint64 { - if m != nil { - return m.LockTime +func (x *Tx) GetLockTime() uint64 { + if x != nil { + return x.LockTime } return 0 } // SelectRequest can specify an ID or a transaction type or none type SelectRequest struct { - Types []TxType `protobuf:"varint,1,rep,packed,name=types,proto3,enum=node.TxType" json:"types,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SelectRequest) Reset() { *m = SelectRequest{} } -func (m *SelectRequest) String() string { return proto.CompactTextString(m) } -func (*SelectRequest) ProtoMessage() {} -func (*SelectRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a84c3667d8c2093a, []int{1} + Types []TxType `protobuf:"varint,1,rep,packed,name=types,proto3,enum=node.TxType" json:"types,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` } -func (m *SelectRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SelectRequest.Unmarshal(m, b) -} -func (m *SelectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SelectRequest.Marshal(b, m, deterministic) -} -func (m *SelectRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelectRequest.Merge(m, src) + +func (x *SelectRequest) Reset() { + *x = SelectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mempool_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SelectRequest) XXX_Size() int { - return xxx_messageInfo_SelectRequest.Size(m) + +func (x *SelectRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SelectRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SelectRequest.DiscardUnknown(m) + +func (*SelectRequest) ProtoMessage() {} + +func (x *SelectRequest) ProtoReflect() protoreflect.Message { + mi := &file_mempool_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SelectRequest proto.InternalMessageInfo +// Deprecated: Use SelectRequest.ProtoReflect.Descriptor instead. +func (*SelectRequest) Descriptor() ([]byte, []int) { + return file_mempool_proto_rawDescGZIP(), []int{1} +} -func (m *SelectRequest) GetTypes() []TxType { - if m != nil { - return m.Types +func (x *SelectRequest) GetTypes() []TxType { + if x != nil { + return x.Types } return nil } -func (m *SelectRequest) GetId() string { - if m != nil { - return m.Id +func (x *SelectRequest) GetId() string { + if x != nil { + return x.Id } return "" } type SelectResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + //Note: the response was a single string describing the transactions. //It should actually be responsibility of the caller to format the data or handle it otherwise //string msg = 1; - Result []*Tx `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Result []*Tx `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` } -func (m *SelectResponse) Reset() { *m = SelectResponse{} } -func (m *SelectResponse) String() string { return proto.CompactTextString(m) } -func (*SelectResponse) ProtoMessage() {} -func (*SelectResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a84c3667d8c2093a, []int{2} -} -func (m *SelectResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SelectResponse.Unmarshal(m, b) -} -func (m *SelectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SelectResponse.Marshal(b, m, deterministic) -} -func (m *SelectResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelectResponse.Merge(m, src) +func (x *SelectResponse) Reset() { + *x = SelectResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_mempool_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SelectResponse) XXX_Size() int { - return xxx_messageInfo_SelectResponse.Size(m) + +func (x *SelectResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SelectResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SelectResponse.DiscardUnknown(m) + +func (*SelectResponse) ProtoMessage() {} + +func (x *SelectResponse) ProtoReflect() protoreflect.Message { + mi := &file_mempool_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SelectResponse proto.InternalMessageInfo +// Deprecated: Use SelectResponse.ProtoReflect.Descriptor instead. +func (*SelectResponse) Descriptor() ([]byte, []int) { + return file_mempool_proto_rawDescGZIP(), []int{2} +} -func (m *SelectResponse) GetResult() []*Tx { - if m != nil { - return m.Result +func (x *SelectResponse) GetResult() []*Tx { + if x != nil { + return x.Result } return nil } type GetUnconfirmedBalanceRequest struct { - Vk []byte `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetUnconfirmedBalanceRequest) Reset() { *m = GetUnconfirmedBalanceRequest{} } -func (m *GetUnconfirmedBalanceRequest) String() string { return proto.CompactTextString(m) } -func (*GetUnconfirmedBalanceRequest) ProtoMessage() {} -func (*GetUnconfirmedBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a84c3667d8c2093a, []int{3} -} -func (m *GetUnconfirmedBalanceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetUnconfirmedBalanceRequest.Unmarshal(m, b) + Vk []byte `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"` } -func (m *GetUnconfirmedBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetUnconfirmedBalanceRequest.Marshal(b, m, deterministic) -} -func (m *GetUnconfirmedBalanceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetUnconfirmedBalanceRequest.Merge(m, src) + +func (x *GetUnconfirmedBalanceRequest) Reset() { + *x = GetUnconfirmedBalanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mempool_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetUnconfirmedBalanceRequest) XXX_Size() int { - return xxx_messageInfo_GetUnconfirmedBalanceRequest.Size(m) + +func (x *GetUnconfirmedBalanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetUnconfirmedBalanceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetUnconfirmedBalanceRequest.DiscardUnknown(m) + +func (*GetUnconfirmedBalanceRequest) ProtoMessage() {} + +func (x *GetUnconfirmedBalanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_mempool_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetUnconfirmedBalanceRequest proto.InternalMessageInfo +// Deprecated: Use GetUnconfirmedBalanceRequest.ProtoReflect.Descriptor instead. +func (*GetUnconfirmedBalanceRequest) Descriptor() ([]byte, []int) { + return file_mempool_proto_rawDescGZIP(), []int{3} +} -func (m *GetUnconfirmedBalanceRequest) GetVk() []byte { - if m != nil { - return m.Vk +func (x *GetUnconfirmedBalanceRequest) GetVk() []byte { + if x != nil { + return x.Vk } return nil } -func init() { - proto.RegisterEnum("node.TxType", TxType_name, TxType_value) - proto.RegisterType((*Tx)(nil), "node.Tx") - proto.RegisterType((*SelectRequest)(nil), "node.SelectRequest") - proto.RegisterType((*SelectResponse)(nil), "node.SelectResponse") - proto.RegisterType((*GetUnconfirmedBalanceRequest)(nil), "node.GetUnconfirmedBalanceRequest") -} - -func init() { proto.RegisterFile("mempool.proto", fileDescriptor_a84c3667d8c2093a) } - -var fileDescriptor_a84c3667d8c2093a = []byte{ - // 346 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x4d, 0xaf, 0x9a, 0x40, - 0x14, 0x86, 0x0b, 0x28, 0xea, 0x11, 0x29, 0x9d, 0x15, 0x49, 0xbb, 0x20, 0xac, 0x88, 0x49, 0x21, - 0xb1, 0xbf, 0x00, 0x0a, 0xad, 0xa4, 0x4d, 0x17, 0xc3, 0x18, 0x93, 0x6e, 0x1a, 0x85, 0xa3, 0x25, - 0x7c, 0x0c, 0x57, 0x06, 0xa3, 0xb9, 0x7f, 0xfe, 0x06, 0xbc, 0x6c, 0xee, 0xdd, 0x4d, 0xde, 0x27, - 0xe7, 0x39, 0xe7, 0xcd, 0xc0, 0xaa, 0xc2, 0xaa, 0xe1, 0xbc, 0x74, 0x9b, 0x0b, 0x17, 0x9c, 0x4c, - 0x6a, 0x9e, 0xa1, 0x9d, 0x80, 0xcc, 0x6e, 0xc4, 0x82, 0x89, 0xb8, 0x37, 0x68, 0x4a, 0x96, 0xe4, - 0xe8, 0x1b, 0xcd, 0xed, 0x91, 0xcb, 0x6e, 0xec, 0xde, 0x20, 0x1d, 0x08, 0xd1, 0x41, 0xce, 0x33, - 0x53, 0xb6, 0x24, 0x67, 0x41, 0xe5, 0x3c, 0x23, 0x9f, 0x61, 0x51, 0xf2, 0xb4, 0xf8, 0x27, 0xf2, - 0x0a, 0x4d, 0xc5, 0x92, 0x1c, 0x95, 0xce, 0xfb, 0x80, 0xe5, 0x15, 0xda, 0xdf, 0x61, 0x95, 0x60, - 0x89, 0xa9, 0xa0, 0xf8, 0xd4, 0x61, 0x2b, 0x88, 0x0d, 0xd3, 0xde, 0xd2, 0x9a, 0x92, 0xa5, 0xbc, - 0x5b, 0xf0, 0x40, 0x6f, 0x37, 0xd8, 0x1b, 0xd0, 0x47, 0x49, 0xdb, 0xf0, 0xba, 0x45, 0x62, 0x81, - 0x7a, 0xc1, 0xb6, 0x2b, 0xc5, 0xa0, 0x59, 0x6e, 0xe6, 0xa3, 0x86, 0xbe, 0xe6, 0xb6, 0x0b, 0x5f, - 0x7e, 0xa2, 0xd8, 0xd5, 0x29, 0xaf, 0x4f, 0xf9, 0xa5, 0xc2, 0x2c, 0x38, 0x94, 0x87, 0x3a, 0xc5, - 0xf1, 0x0e, 0x1d, 0xe4, 0x6b, 0x31, 0xb4, 0xd4, 0xa8, 0x7c, 0x2d, 0xd6, 0xcf, 0xa0, 0x3e, 0x8e, - 0x20, 0x1a, 0xcc, 0x13, 0xe6, 0xff, 0x09, 0x7d, 0x1a, 0x1a, 0x1f, 0x88, 0x0e, 0x10, 0xc6, 0x09, - 0xa3, 0x71, 0xb0, 0x63, 0x91, 0x21, 0x11, 0x03, 0xb4, 0x7d, 0xcc, 0xb6, 0x21, 0xf5, 0xf7, 0x3f, - 0xa2, 0x28, 0x31, 0x64, 0x32, 0x03, 0x25, 0x88, 0x43, 0x43, 0x21, 0x0b, 0x98, 0x26, 0xcc, 0xff, - 0x15, 0x19, 0x93, 0xe1, 0xf9, 0xdb, 0x4f, 0xb6, 0xc6, 0x94, 0x7c, 0x82, 0xd5, 0x38, 0xf0, 0xa0, - 0x2a, 0xf9, 0x08, 0xcb, 0x31, 0xea, 0x27, 0x67, 0xc1, 0xfa, 0xaf, 0x73, 0xce, 0xc5, 0xff, 0xee, - 0xe8, 0xa6, 0xbc, 0xf2, 0xb2, 0xae, 0x2d, 0xbe, 0x0e, 0x3f, 0x73, 0xec, 0x4e, 0xde, 0xa1, 0x13, - 0xfc, 0x8c, 0xb5, 0x77, 0xe6, 0x5e, 0xdf, 0xf1, 0xa8, 0x0e, 0xe4, 0xdb, 0x4b, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x54, 0x2d, 0xe8, 0xab, 0xc4, 0x01, 0x00, 0x00, +var File_mempool_proto protoreflect.FileDescriptor + +var file_mempool_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x6d, 0x65, 0x6d, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x22, 0x53, 0x0a, 0x02, 0x54, 0x78, 0x12, 0x20, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x6e, 0x6f, 0x64, 0x65, + 0x2e, 0x54, 0x78, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, + 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, + 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x43, 0x0a, 0x0d, 0x53, 0x65, + 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x05, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x54, 0x78, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, + 0x32, 0x0a, 0x0e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x20, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x08, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x78, 0x52, 0x06, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x22, 0x2e, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x72, 0x6d, 0x65, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x76, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x02, 0x76, 0x6b, 0x2a, 0x7b, 0x0a, 0x06, 0x54, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, + 0x08, 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x44, + 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x57, + 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x46, 0x45, 0x45, 0x53, 0x10, 0x02, 0x12, 0x07, 0x0a, + 0x03, 0x42, 0x49, 0x44, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x54, 0x41, 0x4b, 0x45, 0x10, + 0x04, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x4c, 0x41, 0x53, 0x48, 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, + 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x53, 0x54, 0x41, 0x4b, 0x45, 0x10, 0x06, 0x12, + 0x0f, 0x0a, 0x0b, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x42, 0x49, 0x44, 0x10, 0x07, + 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, + 0x75, 0x73, 0x6b, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x75, 0x74, + 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_mempool_proto_rawDescOnce sync.Once + file_mempool_proto_rawDescData = file_mempool_proto_rawDesc +) + +func file_mempool_proto_rawDescGZIP() []byte { + file_mempool_proto_rawDescOnce.Do(func() { + file_mempool_proto_rawDescData = protoimpl.X.CompressGZIP(file_mempool_proto_rawDescData) + }) + return file_mempool_proto_rawDescData +} + +var file_mempool_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_mempool_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_mempool_proto_goTypes = []interface{}{ + (TxType)(0), // 0: node.TxType + (*Tx)(nil), // 1: node.Tx + (*SelectRequest)(nil), // 2: node.SelectRequest + (*SelectResponse)(nil), // 3: node.SelectResponse + (*GetUnconfirmedBalanceRequest)(nil), // 4: node.GetUnconfirmedBalanceRequest +} +var file_mempool_proto_depIdxs = []int32{ + 0, // 0: node.Tx.type:type_name -> node.TxType + 0, // 1: node.SelectRequest.types:type_name -> node.TxType + 1, // 2: node.SelectResponse.result:type_name -> node.Tx + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_mempool_proto_init() } +func file_mempool_proto_init() { + if File_mempool_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_mempool_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Tx); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mempool_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SelectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mempool_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SelectResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mempool_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUnconfirmedBalanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_mempool_proto_rawDesc, + NumEnums: 1, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_mempool_proto_goTypes, + DependencyIndexes: file_mempool_proto_depIdxs, + EnumInfos: file_mempool_proto_enumTypes, + MessageInfos: file_mempool_proto_msgTypes, + }.Build() + File_mempool_proto = out.File + file_mempool_proto_rawDesc = nil + file_mempool_proto_goTypes = nil + file_mempool_proto_depIdxs = nil } diff --git a/autogen/go/node/node.mock.go b/autogen/go/node/node.mock.go index ddb72f6..1c20fc8 100644 --- a/autogen/go/node/node.mock.go +++ b/autogen/go/node/node.mock.go @@ -15,6 +15,23 @@ var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +type AuthMock struct{} + +func (m *AuthMock) CreateSession(ctx context.Context, req *SessionRequest) (*Session, error) { + res := + &Session{ + AccessToken: "eveniet", + } + return res, nil +} +func (m *AuthMock) DropSession(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { + res := + &GenericResponse{ + Response: "voluptatem", + } + return res, nil +} + type WalletMock struct{} func (m *WalletMock) CreateWallet(ctx context.Context, req *CreateRequest) (*LoadResponse, error) { @@ -41,7 +58,7 @@ func (m *WalletMock) CreateFromSeed(ctx context.Context, req *CreateRequest) (*L func (m *WalletMock) ClearWalletDatabase(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { res := &GenericResponse{ - Response: "totam", + Response: "eligendi", } return res, nil } @@ -70,50 +87,50 @@ func (m *WalletMock) GetTxHistory(ctx context.Context, req *EmptyRequest) (*TxHi Records: []*TxRecord{ &TxRecord{ Direction: 1, - Timestamp: 335, + Timestamp: 332, Type: 7, Obfuscated: true, }, &TxRecord{ Direction: 0, - Timestamp: 873, + Timestamp: 826, Type: 2, Obfuscated: false, }, &TxRecord{ - Direction: 1, - Timestamp: 980, - Type: 3, - Obfuscated: true, + Direction: 0, + Timestamp: 638, + Type: 6, + Obfuscated: false, }, &TxRecord{ Direction: 1, - Timestamp: 7, - Type: 3, - Obfuscated: true, + Timestamp: 607, + Type: 6, + Obfuscated: false, }, &TxRecord{ Direction: 0, - Timestamp: 165, - Type: 0, + Timestamp: 507, + Type: 5, Obfuscated: true, }, &TxRecord{ - Direction: 0, - Timestamp: 785, - Type: 6, + Direction: 1, + Timestamp: 421, + Type: 3, Obfuscated: true, }, &TxRecord{ Direction: 0, - Timestamp: 659, - Type: 2, + Timestamp: 115, + Type: 3, Obfuscated: false, }, &TxRecord{ Direction: 0, - Timestamp: 255, - Type: 6, + Timestamp: 200, + Type: 7, Obfuscated: false, }, }, @@ -133,36 +150,36 @@ func (m *MempoolMock) SelectTx(ctx context.Context, req *SelectRequest) (*Select &SelectResponse{ Result: []*Tx{ &Tx{ - Type: 4, - Id: "734f5d3a-45eb-45cf-a97b-bf8471f64386", + Type: 5, + Id: "2b632385-9c46-4b32-9c29-c8c79627499e", }, &Tx{ - Type: 0, - Id: "e19aecec-4dae-4fea-ba70-55a783eea7be", + Type: 1, + Id: "178ac452-86c3-4791-8c44-7fe92f81fc68", }, &Tx{ - Type: 6, - Id: "a6674411-bd7b-4d06-882c-fe4b76cdb747", + Type: 5, + Id: "934edf6b-63e0-4b9d-a5ec-83122e0c7c3e", }, &Tx{ - Type: 7, - Id: "08f208fa-5cae-46aa-acab-c18a3482cfd6", + Type: 6, + Id: "dfe702ca-bc05-4914-804e-3aefaebb5f7e", }, &Tx{ - Type: 2, - Id: "d3aa0f2d-8cb3-4fa5-8235-de6455c1eefc", + Type: 3, + Id: "10a58973-f4ec-48d9-b633-df08025a40be", }, &Tx{ - Type: 6, - Id: "50e00d66-050c-4b48-9ff8-9503320409e1", + Type: 2, + Id: "808c35a2-5a59-4bc7-82c2-0848c170a924", }, &Tx{ Type: 0, - Id: "cf0315ba-c79e-478f-9376-4a05d4ec0317", + Id: "7c80614f-12f1-4ec8-b180-1ff9f73ca48b", }, &Tx{ - Type: 2, - Id: "a9ee4190-2671-48ad-ad40-c3010c8b67a2", + Type: 7, + Id: "d3a0d156-9752-47f8-ae34-d7468b180b6e", }, }, } @@ -174,14 +191,14 @@ type ChainMock struct{} func (m *ChainMock) RebuildChain(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { res := &GenericResponse{ - Response: "et", + Response: "libero", } return res, nil } func (m *ChainMock) GetSyncProgress(ctx context.Context, req *EmptyRequest) (*SyncProgressResponse, error) { res := &SyncProgressResponse{ - Progress: 155.4994, + Progress: 271.8615, } return res, nil } @@ -214,7 +231,7 @@ type ProvisionerMock struct{} func (m *ProvisionerMock) AutomateStakes(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { res := &GenericResponse{ - Response: "pariatur", + Response: "nisi", } return res, nil } @@ -224,7 +241,7 @@ type BlockGeneratorMock struct{} func (m *BlockGeneratorMock) AutomateBids(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { res := &GenericResponse{ - Response: "quidem", + Response: "cumque", } return res, nil } diff --git a/autogen/go/node/node.pb.go b/autogen/go/node/node.pb.go index 073579e..fc40b0d 100644 --- a/autogen/go/node/node.pb.go +++ b/autogen/go/node/node.pb.go @@ -1,149 +1,468 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.21.0 +// protoc v3.11.4 // source: node.proto package node import ( context "context" - fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type EmptyRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *EmptyRequest) Reset() { *m = EmptyRequest{} } -func (m *EmptyRequest) String() string { return proto.CompactTextString(m) } -func (*EmptyRequest) ProtoMessage() {} -func (*EmptyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0c843d59d2d938e7, []int{0} +func (x *EmptyRequest) Reset() { + *x = EmptyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_node_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EmptyRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EmptyRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EmptyRequest.Unmarshal(m, b) + +func (*EmptyRequest) ProtoMessage() {} + +func (x *EmptyRequest) ProtoReflect() protoreflect.Message { + mi := &file_node_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *EmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EmptyRequest.Marshal(b, m, deterministic) + +// Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead. +func (*EmptyRequest) Descriptor() ([]byte, []int) { + return file_node_proto_rawDescGZIP(), []int{0} } -func (m *EmptyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_EmptyRequest.Merge(m, src) + +type GenericResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` } -func (m *EmptyRequest) XXX_Size() int { - return xxx_messageInfo_EmptyRequest.Size(m) + +func (x *GenericResponse) Reset() { + *x = GenericResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_node_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *EmptyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_EmptyRequest.DiscardUnknown(m) + +func (x *GenericResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_EmptyRequest proto.InternalMessageInfo +func (*GenericResponse) ProtoMessage() {} -type GenericResponse struct { - Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GenericResponse) ProtoReflect() protoreflect.Message { + mi := &file_node_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *GenericResponse) Reset() { *m = GenericResponse{} } -func (m *GenericResponse) String() string { return proto.CompactTextString(m) } -func (*GenericResponse) ProtoMessage() {} +// Deprecated: Use GenericResponse.ProtoReflect.Descriptor instead. func (*GenericResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0c843d59d2d938e7, []int{1} + return file_node_proto_rawDescGZIP(), []int{1} } -func (m *GenericResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenericResponse.Unmarshal(m, b) + +func (x *GenericResponse) GetResponse() string { + if x != nil { + return x.Response + } + return "" } -func (m *GenericResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenericResponse.Marshal(b, m, deterministic) + +var File_node_proto protoreflect.FileDescriptor + +var file_node_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6e, 0x6f, + 0x64, 0x65, 0x1a, 0x0c, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x0d, 0x6d, 0x65, 0x6d, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x0e, 0x0a, 0x0c, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x2d, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x7a, + 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68, 0x12, 0x36, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x53, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d, 0x2e, + 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x3a, + 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x2e, + 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0xf2, 0x03, 0x0a, 0x06, 0x57, + 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x39, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, + 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x13, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x35, 0x0a, 0x0a, 0x4c, 0x6f, 0x61, 0x64, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x11, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x12, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x53, 0x65, 0x65, 0x64, 0x12, 0x13, 0x2e, 0x6e, 0x6f, 0x64, 0x65, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x13, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x57, 0x61, 0x6c, + 0x6c, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x12, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x57, + 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1a, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x36, 0x0a, + 0x0a, 0x47, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x12, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x12, 0x12, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x42, + 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x3d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x54, 0x78, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x12, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x78, 0x48, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, + 0x98, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x6d, 0x70, 0x6f, 0x6f, 0x6c, 0x12, 0x54, 0x0a, 0x15, 0x47, + 0x65, 0x74, 0x55, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, + 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, + 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x37, 0x0a, 0x08, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x54, 0x78, 0x12, 0x13, 0x2e, + 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0x89, 0x01, 0x0a, 0x05, 0x43, + 0x68, 0x61, 0x69, 0x6e, 0x12, 0x3b, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x43, + 0x68, 0x61, 0x69, 0x6e, 0x12, 0x12, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x43, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, + 0x53, 0x79, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0x84, 0x02, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x46, 0x0a, 0x0c, 0x43, 0x61, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x19, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x43, 0x61, 0x6c, + 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x19, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3e, 0x0a, + 0x08, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, + 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x19, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x34, 0x0a, + 0x03, 0x42, 0x69, 0x64, 0x12, 0x10, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x42, 0x69, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x38, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x12, 0x2e, 0x6e, + 0x6f, 0x64, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x19, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0x4c, 0x0a, + 0x0b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0e, + 0x41, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x73, 0x12, 0x12, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, + 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0x4d, 0x0a, 0x0e, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x3b, 0x0a, + 0x0c, 0x41, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x65, 0x42, 0x69, 0x64, 0x73, 0x12, 0x12, 0x2e, + 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, 0x6b, 0x2d, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, + 0x6f, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_node_proto_rawDescOnce sync.Once + file_node_proto_rawDescData = file_node_proto_rawDesc +) + +func file_node_proto_rawDescGZIP() []byte { + file_node_proto_rawDescOnce.Do(func() { + file_node_proto_rawDescData = protoimpl.X.CompressGZIP(file_node_proto_rawDescData) + }) + return file_node_proto_rawDescData +} + +var file_node_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_node_proto_goTypes = []interface{}{ + (*EmptyRequest)(nil), // 0: node.EmptyRequest + (*GenericResponse)(nil), // 1: node.GenericResponse + (*SessionRequest)(nil), // 2: node.SessionRequest + (*CreateRequest)(nil), // 3: node.CreateRequest + (*LoadRequest)(nil), // 4: node.LoadRequest + (*GetUnconfirmedBalanceRequest)(nil), // 5: node.GetUnconfirmedBalanceRequest + (*SelectRequest)(nil), // 6: node.SelectRequest + (*CallContractRequest)(nil), // 7: node.CallContractRequest + (*TransferRequest)(nil), // 8: node.TransferRequest + (*BidRequest)(nil), // 9: node.BidRequest + (*StakeRequest)(nil), // 10: node.StakeRequest + (*Session)(nil), // 11: node.Session + (*LoadResponse)(nil), // 12: node.LoadResponse + (*WalletStatusResponse)(nil), // 13: node.WalletStatusResponse + (*BalanceResponse)(nil), // 14: node.BalanceResponse + (*TxHistoryResponse)(nil), // 15: node.TxHistoryResponse + (*SelectResponse)(nil), // 16: node.SelectResponse + (*SyncProgressResponse)(nil), // 17: node.SyncProgressResponse + (*TransactionResponse)(nil), // 18: node.TransactionResponse +} +var file_node_proto_depIdxs = []int32{ + 2, // 0: node.Auth.CreateSession:input_type -> node.SessionRequest + 0, // 1: node.Auth.DropSession:input_type -> node.EmptyRequest + 3, // 2: node.Wallet.CreateWallet:input_type -> node.CreateRequest + 4, // 3: node.Wallet.LoadWallet:input_type -> node.LoadRequest + 3, // 4: node.Wallet.CreateFromSeed:input_type -> node.CreateRequest + 0, // 5: node.Wallet.ClearWalletDatabase:input_type -> node.EmptyRequest + 0, // 6: node.Wallet.GetWalletStatus:input_type -> node.EmptyRequest + 0, // 7: node.Wallet.GetAddress:input_type -> node.EmptyRequest + 0, // 8: node.Wallet.GetBalance:input_type -> node.EmptyRequest + 0, // 9: node.Wallet.GetTxHistory:input_type -> node.EmptyRequest + 5, // 10: node.Mempool.GetUnconfirmedBalance:input_type -> node.GetUnconfirmedBalanceRequest + 6, // 11: node.Mempool.SelectTx:input_type -> node.SelectRequest + 0, // 12: node.Chain.RebuildChain:input_type -> node.EmptyRequest + 0, // 13: node.Chain.GetSyncProgress:input_type -> node.EmptyRequest + 7, // 14: node.Transactor.CallContract:input_type -> node.CallContractRequest + 8, // 15: node.Transactor.Transfer:input_type -> node.TransferRequest + 9, // 16: node.Transactor.Bid:input_type -> node.BidRequest + 10, // 17: node.Transactor.Stake:input_type -> node.StakeRequest + 0, // 18: node.Provisioner.AutomateStakes:input_type -> node.EmptyRequest + 0, // 19: node.BlockGenerator.AutomateBids:input_type -> node.EmptyRequest + 11, // 20: node.Auth.CreateSession:output_type -> node.Session + 1, // 21: node.Auth.DropSession:output_type -> node.GenericResponse + 12, // 22: node.Wallet.CreateWallet:output_type -> node.LoadResponse + 12, // 23: node.Wallet.LoadWallet:output_type -> node.LoadResponse + 12, // 24: node.Wallet.CreateFromSeed:output_type -> node.LoadResponse + 1, // 25: node.Wallet.ClearWalletDatabase:output_type -> node.GenericResponse + 13, // 26: node.Wallet.GetWalletStatus:output_type -> node.WalletStatusResponse + 12, // 27: node.Wallet.GetAddress:output_type -> node.LoadResponse + 14, // 28: node.Wallet.GetBalance:output_type -> node.BalanceResponse + 15, // 29: node.Wallet.GetTxHistory:output_type -> node.TxHistoryResponse + 14, // 30: node.Mempool.GetUnconfirmedBalance:output_type -> node.BalanceResponse + 16, // 31: node.Mempool.SelectTx:output_type -> node.SelectResponse + 1, // 32: node.Chain.RebuildChain:output_type -> node.GenericResponse + 17, // 33: node.Chain.GetSyncProgress:output_type -> node.SyncProgressResponse + 18, // 34: node.Transactor.CallContract:output_type -> node.TransactionResponse + 18, // 35: node.Transactor.Transfer:output_type -> node.TransactionResponse + 18, // 36: node.Transactor.Bid:output_type -> node.TransactionResponse + 18, // 37: node.Transactor.Stake:output_type -> node.TransactionResponse + 1, // 38: node.Provisioner.AutomateStakes:output_type -> node.GenericResponse + 1, // 39: node.BlockGenerator.AutomateBids:output_type -> node.GenericResponse + 20, // [20:40] is the sub-list for method output_type + 0, // [0:20] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_node_proto_init() } +func file_node_proto_init() { + if File_node_proto != nil { + return + } + file_wallet_proto_init() + file_mempool_proto_init() + if !protoimpl.UnsafeEnabled { + file_node_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EmptyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_node_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenericResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_node_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 7, + }, + GoTypes: file_node_proto_goTypes, + DependencyIndexes: file_node_proto_depIdxs, + MessageInfos: file_node_proto_msgTypes, + }.Build() + File_node_proto = out.File + file_node_proto_rawDesc = nil + file_node_proto_goTypes = nil + file_node_proto_depIdxs = nil } -func (m *GenericResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenericResponse.Merge(m, src) + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// AuthClient is the client API for Auth service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type AuthClient interface { + CreateSession(ctx context.Context, in *SessionRequest, opts ...grpc.CallOption) (*Session, error) + DropSession(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GenericResponse, error) } -func (m *GenericResponse) XXX_Size() int { - return xxx_messageInfo_GenericResponse.Size(m) + +type authClient struct { + cc grpc.ClientConnInterface } -func (m *GenericResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GenericResponse.DiscardUnknown(m) + +func NewAuthClient(cc grpc.ClientConnInterface) AuthClient { + return &authClient{cc} } -var xxx_messageInfo_GenericResponse proto.InternalMessageInfo +func (c *authClient) CreateSession(ctx context.Context, in *SessionRequest, opts ...grpc.CallOption) (*Session, error) { + out := new(Session) + err := c.cc.Invoke(ctx, "/node.Auth/CreateSession", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} -func (m *GenericResponse) GetResponse() string { - if m != nil { - return m.Response +func (c *authClient) DropSession(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GenericResponse, error) { + out := new(GenericResponse) + err := c.cc.Invoke(ctx, "/node.Auth/DropSession", in, out, opts...) + if err != nil { + return nil, err } - return "" + return out, nil } -func init() { - proto.RegisterType((*EmptyRequest)(nil), "node.EmptyRequest") - proto.RegisterType((*GenericResponse)(nil), "node.GenericResponse") -} - -func init() { proto.RegisterFile("node.proto", fileDescriptor_0c843d59d2d938e7) } - -var fileDescriptor_0c843d59d2d938e7 = []byte{ - // 535 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcf, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0x1b, 0x4a, 0x4b, 0x18, 0x4c, 0x80, 0x2d, 0x11, 0xe0, 0x13, 0xca, 0xa9, 0x42, 0x6a, - 0x22, 0x85, 0xbf, 0x55, 0x54, 0xa4, 0xda, 0xd0, 0x70, 0x68, 0xa5, 0x2a, 0x09, 0x42, 0xe2, 0xb6, - 0xf1, 0x4e, 0xd2, 0x55, 0xec, 0xdd, 0xb0, 0x3b, 0x86, 0xe6, 0xce, 0x85, 0x37, 0xe0, 0x39, 0x79, - 0x02, 0x14, 0xaf, 0x1d, 0x0c, 0x32, 0x25, 0xe1, 0xb6, 0xf3, 0xcd, 0xfc, 0xbe, 0x1d, 0xcf, 0xac, - 0x0c, 0xa0, 0xb4, 0xc0, 0xf6, 0xdc, 0x68, 0xd2, 0xec, 0xfa, 0xf2, 0xec, 0x7b, 0x5f, 0x78, 0x1c, - 0x23, 0x39, 0xcd, 0xbf, 0x9d, 0x60, 0x32, 0xd7, 0x3a, 0x76, 0x61, 0xab, 0x01, 0xde, 0xdb, 0x64, - 0x4e, 0x8b, 0x01, 0x7e, 0x4a, 0xd1, 0x52, 0xeb, 0x00, 0xee, 0xf4, 0x51, 0xa1, 0x91, 0xd1, 0x00, - 0xed, 0x5c, 0x2b, 0x8b, 0xcc, 0x87, 0xba, 0xc9, 0xcf, 0x0f, 0x6b, 0x8f, 0x6b, 0xfb, 0x37, 0x07, - 0xab, 0xb8, 0xfb, 0x63, 0x1b, 0x76, 0x3f, 0x64, 0xf6, 0xec, 0x10, 0xbc, 0xd0, 0x20, 0x27, 0xcc, - 0xe3, 0xbd, 0x76, 0xd6, 0x89, 0xd3, 0x72, 0x7b, 0x9f, 0x39, 0xf1, 0x54, 0x73, 0x51, 0xf8, 0xb7, - 0xb6, 0xd8, 0x73, 0x80, 0xa5, 0x92, 0x83, 0xf7, 0xca, 0x35, 0x57, 0x61, 0x3d, 0x68, 0x38, 0xf7, - 0x13, 0xa3, 0x93, 0x21, 0xa2, 0xd8, 0xe4, 0xce, 0x00, 0xf6, 0xc2, 0x18, 0xb9, 0x71, 0x97, 0xbe, - 0xe1, 0xc4, 0xc7, 0xdc, 0x22, 0xcb, 0x8b, 0xcb, 0x33, 0xf1, 0x9b, 0x4e, 0xfb, 0x63, 0x2e, 0xad, - 0x2d, 0x16, 0x2e, 0x87, 0x45, 0xce, 0x61, 0x48, 0x9c, 0x52, 0x5b, 0xc9, 0xfb, 0x4e, 0x2b, 0xd7, - 0x95, 0x4c, 0x5e, 0x00, 0xf4, 0x91, 0x8e, 0x85, 0x30, 0x68, 0xab, 0xf9, 0xea, 0x0f, 0x38, 0xcc, - 0xb8, 0x80, 0xc7, 0x5c, 0x45, 0x57, 0xf6, 0x9d, 0x97, 0x94, 0xd0, 0x23, 0xf0, 0xfa, 0x48, 0xa3, - 0xcb, 0x77, 0xd2, 0x92, 0x36, 0x8b, 0x4a, 0xf8, 0x81, 0xd3, 0x56, 0x45, 0xbf, 0xf0, 0xee, 0xf7, - 0x1a, 0xdc, 0x38, 0x73, 0xaf, 0x88, 0x8d, 0xa0, 0xd9, 0x47, 0x7a, 0xaf, 0x22, 0xad, 0x26, 0xd2, - 0x24, 0x28, 0x8a, 0x86, 0x5a, 0xc5, 0xd0, 0x2a, 0x92, 0xff, 0x6c, 0xf0, 0x25, 0xd4, 0x87, 0x18, - 0x63, 0x44, 0xa3, 0xcb, 0x62, 0xa7, 0x2e, 0x2e, 0xc8, 0xfb, 0xbf, 0x8b, 0xab, 0xd6, 0xbe, 0xd5, - 0x60, 0x27, 0xbc, 0xe0, 0x52, 0xb1, 0x1e, 0x78, 0x03, 0x1c, 0xa7, 0x32, 0x16, 0x2e, 0xfe, 0x8f, - 0xc5, 0x0e, 0x17, 0x2a, 0x3a, 0x37, 0x7a, 0xfa, 0xd7, 0xc5, 0xe4, 0x8b, 0x2d, 0xd7, 0x95, 0x7a, - 0xf9, 0x7a, 0x0d, 0x60, 0x64, 0xb8, 0xb2, 0x3c, 0x22, 0x6d, 0xd8, 0x09, 0x78, 0x21, 0x8f, 0xe3, - 0x50, 0x2b, 0x32, 0x3c, 0x22, 0xf6, 0x28, 0x7f, 0xab, 0x25, 0xad, 0xf0, 0xcd, 0x53, 0x05, 0x2c, - 0xb5, 0x2a, 0xf5, 0xf6, 0x1a, 0xea, 0x59, 0x62, 0x82, 0x86, 0x35, 0x4b, 0x85, 0x13, 0x34, 0x6b, - 0xf1, 0xcf, 0x60, 0x3b, 0x90, 0x82, 0xdd, 0xcd, 0x67, 0x2f, 0xc5, 0x5a, 0xd4, 0x2b, 0xd8, 0x19, - 0x12, 0x9f, 0xad, 0x1e, 0x5a, 0x16, 0xac, 0x43, 0x76, 0x4f, 0xe1, 0xd6, 0xb9, 0xd1, 0x9f, 0xa5, - 0x95, 0x5a, 0xa1, 0x61, 0x47, 0xd0, 0x38, 0x4e, 0x49, 0x27, 0x9c, 0x30, 0xf3, 0xb0, 0x1b, 0x6d, - 0xa6, 0x7b, 0x06, 0x8d, 0x20, 0xd6, 0xd1, 0x2c, 0xcb, 0xf0, 0xe5, 0x5c, 0x7b, 0xe0, 0x15, 0x86, - 0x81, 0x14, 0x9b, 0xd9, 0x05, 0x4f, 0x3e, 0xee, 0x4f, 0x25, 0x5d, 0xa4, 0xe3, 0x76, 0xa4, 0x93, - 0x8e, 0x48, 0xed, 0xec, 0x20, 0xfb, 0x2f, 0x8e, 0xd3, 0x49, 0x87, 0xa7, 0xa4, 0xa7, 0xa8, 0x3a, - 0x53, 0xdd, 0x59, 0xd2, 0xe3, 0xdd, 0x2c, 0xf3, 0xf4, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0xad, - 0xed, 0x73, 0x6e, 0x62, 0x05, 0x00, 0x00, +// AuthServer is the server API for Auth service. +type AuthServer interface { + CreateSession(context.Context, *SessionRequest) (*Session, error) + DropSession(context.Context, *EmptyRequest) (*GenericResponse, error) } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +// UnimplementedAuthServer can be embedded to have forward compatible implementations. +type UnimplementedAuthServer struct { +} -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +func (*UnimplementedAuthServer) CreateSession(context.Context, *SessionRequest) (*Session, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateSession not implemented") +} +func (*UnimplementedAuthServer) DropSession(context.Context, *EmptyRequest) (*GenericResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DropSession not implemented") +} + +func RegisterAuthServer(s *grpc.Server, srv AuthServer) { + s.RegisterService(&_Auth_serviceDesc, srv) +} + +func _Auth_CreateSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SessionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).CreateSession(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/node.Auth/CreateSession", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).CreateSession(ctx, req.(*SessionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Auth_DropSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServer).DropSession(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/node.Auth/DropSession", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServer).DropSession(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Auth_serviceDesc = grpc.ServiceDesc{ + ServiceName: "node.Auth", + HandlerType: (*AuthServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateSession", + Handler: _Auth_CreateSession_Handler, + }, + { + MethodName: "DropSession", + Handler: _Auth_DropSession_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "node.proto", +} // WalletClient is the client API for Wallet service. // @@ -160,10 +479,10 @@ type WalletClient interface { } type walletClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewWalletClient(cc *grpc.ClientConn) WalletClient { +func NewWalletClient(cc grpc.ClientConnInterface) WalletClient { return &walletClient{cc} } @@ -255,28 +574,28 @@ type WalletServer interface { type UnimplementedWalletServer struct { } -func (*UnimplementedWalletServer) CreateWallet(ctx context.Context, req *CreateRequest) (*LoadResponse, error) { +func (*UnimplementedWalletServer) CreateWallet(context.Context, *CreateRequest) (*LoadResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateWallet not implemented") } -func (*UnimplementedWalletServer) LoadWallet(ctx context.Context, req *LoadRequest) (*LoadResponse, error) { +func (*UnimplementedWalletServer) LoadWallet(context.Context, *LoadRequest) (*LoadResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LoadWallet not implemented") } -func (*UnimplementedWalletServer) CreateFromSeed(ctx context.Context, req *CreateRequest) (*LoadResponse, error) { +func (*UnimplementedWalletServer) CreateFromSeed(context.Context, *CreateRequest) (*LoadResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateFromSeed not implemented") } -func (*UnimplementedWalletServer) ClearWalletDatabase(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { +func (*UnimplementedWalletServer) ClearWalletDatabase(context.Context, *EmptyRequest) (*GenericResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ClearWalletDatabase not implemented") } -func (*UnimplementedWalletServer) GetWalletStatus(ctx context.Context, req *EmptyRequest) (*WalletStatusResponse, error) { +func (*UnimplementedWalletServer) GetWalletStatus(context.Context, *EmptyRequest) (*WalletStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetWalletStatus not implemented") } -func (*UnimplementedWalletServer) GetAddress(ctx context.Context, req *EmptyRequest) (*LoadResponse, error) { +func (*UnimplementedWalletServer) GetAddress(context.Context, *EmptyRequest) (*LoadResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAddress not implemented") } -func (*UnimplementedWalletServer) GetBalance(ctx context.Context, req *EmptyRequest) (*BalanceResponse, error) { +func (*UnimplementedWalletServer) GetBalance(context.Context, *EmptyRequest) (*BalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBalance not implemented") } -func (*UnimplementedWalletServer) GetTxHistory(ctx context.Context, req *EmptyRequest) (*TxHistoryResponse, error) { +func (*UnimplementedWalletServer) GetTxHistory(context.Context, *EmptyRequest) (*TxHistoryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTxHistory not implemented") } @@ -478,10 +797,10 @@ type MempoolClient interface { } type mempoolClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewMempoolClient(cc *grpc.ClientConn) MempoolClient { +func NewMempoolClient(cc grpc.ClientConnInterface) MempoolClient { return &mempoolClient{cc} } @@ -513,10 +832,10 @@ type MempoolServer interface { type UnimplementedMempoolServer struct { } -func (*UnimplementedMempoolServer) GetUnconfirmedBalance(ctx context.Context, req *GetUnconfirmedBalanceRequest) (*BalanceResponse, error) { +func (*UnimplementedMempoolServer) GetUnconfirmedBalance(context.Context, *GetUnconfirmedBalanceRequest) (*BalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUnconfirmedBalance not implemented") } -func (*UnimplementedMempoolServer) SelectTx(ctx context.Context, req *SelectRequest) (*SelectResponse, error) { +func (*UnimplementedMempoolServer) SelectTx(context.Context, *SelectRequest) (*SelectResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SelectTx not implemented") } @@ -586,10 +905,10 @@ type ChainClient interface { } type chainClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewChainClient(cc *grpc.ClientConn) ChainClient { +func NewChainClient(cc grpc.ClientConnInterface) ChainClient { return &chainClient{cc} } @@ -621,10 +940,10 @@ type ChainServer interface { type UnimplementedChainServer struct { } -func (*UnimplementedChainServer) RebuildChain(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { +func (*UnimplementedChainServer) RebuildChain(context.Context, *EmptyRequest) (*GenericResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RebuildChain not implemented") } -func (*UnimplementedChainServer) GetSyncProgress(ctx context.Context, req *EmptyRequest) (*SyncProgressResponse, error) { +func (*UnimplementedChainServer) GetSyncProgress(context.Context, *EmptyRequest) (*SyncProgressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSyncProgress not implemented") } @@ -696,10 +1015,10 @@ type TransactorClient interface { } type transactorClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewTransactorClient(cc *grpc.ClientConn) TransactorClient { +func NewTransactorClient(cc grpc.ClientConnInterface) TransactorClient { return &transactorClient{cc} } @@ -751,16 +1070,16 @@ type TransactorServer interface { type UnimplementedTransactorServer struct { } -func (*UnimplementedTransactorServer) CallContract(ctx context.Context, req *CallContractRequest) (*TransactionResponse, error) { +func (*UnimplementedTransactorServer) CallContract(context.Context, *CallContractRequest) (*TransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CallContract not implemented") } -func (*UnimplementedTransactorServer) Transfer(ctx context.Context, req *TransferRequest) (*TransactionResponse, error) { +func (*UnimplementedTransactorServer) Transfer(context.Context, *TransferRequest) (*TransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Transfer not implemented") } -func (*UnimplementedTransactorServer) Bid(ctx context.Context, req *BidRequest) (*TransactionResponse, error) { +func (*UnimplementedTransactorServer) Bid(context.Context, *BidRequest) (*TransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Bid not implemented") } -func (*UnimplementedTransactorServer) Stake(ctx context.Context, req *StakeRequest) (*TransactionResponse, error) { +func (*UnimplementedTransactorServer) Stake(context.Context, *StakeRequest) (*TransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Stake not implemented") } @@ -873,10 +1192,10 @@ type ProvisionerClient interface { } type provisionerClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewProvisionerClient(cc *grpc.ClientConn) ProvisionerClient { +func NewProvisionerClient(cc grpc.ClientConnInterface) ProvisionerClient { return &provisionerClient{cc} } @@ -898,7 +1217,7 @@ type ProvisionerServer interface { type UnimplementedProvisionerServer struct { } -func (*UnimplementedProvisionerServer) AutomateStakes(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { +func (*UnimplementedProvisionerServer) AutomateStakes(context.Context, *EmptyRequest) (*GenericResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AutomateStakes not implemented") } @@ -945,10 +1264,10 @@ type BlockGeneratorClient interface { } type blockGeneratorClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewBlockGeneratorClient(cc *grpc.ClientConn) BlockGeneratorClient { +func NewBlockGeneratorClient(cc grpc.ClientConnInterface) BlockGeneratorClient { return &blockGeneratorClient{cc} } @@ -970,7 +1289,7 @@ type BlockGeneratorServer interface { type UnimplementedBlockGeneratorServer struct { } -func (*UnimplementedBlockGeneratorServer) AutomateBids(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { +func (*UnimplementedBlockGeneratorServer) AutomateBids(context.Context, *EmptyRequest) (*GenericResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AutomateBids not implemented") } diff --git a/autogen/go/node/wallet.pb.go b/autogen/go/node/wallet.pb.go index f9a5f45..cf4934c 100644 --- a/autogen/go/node/wallet.pb.go +++ b/autogen/go/node/wallet.pb.go @@ -1,24 +1,29 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.21.0 +// protoc v3.11.4 // source: wallet.proto package node import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - math "math" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type Direction int32 @@ -27,815 +32,1384 @@ const ( Direction_IN Direction = 1 ) -var Direction_name = map[int32]string{ - 0: "OUT", - 1: "IN", -} +// Enum value maps for Direction. +var ( + Direction_name = map[int32]string{ + 0: "OUT", + 1: "IN", + } + Direction_value = map[string]int32{ + "OUT": 0, + "IN": 1, + } +) -var Direction_value = map[string]int32{ - "OUT": 0, - "IN": 1, +func (x Direction) Enum() *Direction { + p := new(Direction) + *p = x + return p } func (x Direction) String() string { - return proto.EnumName(Direction_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (Direction) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{0} +func (Direction) Descriptor() protoreflect.EnumDescriptor { + return file_wallet_proto_enumTypes[0].Descriptor() } -type PubKey struct { - PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (Direction) Type() protoreflect.EnumType { + return &file_wallet_proto_enumTypes[0] } -func (m *PubKey) Reset() { *m = PubKey{} } -func (m *PubKey) String() string { return proto.CompactTextString(m) } -func (*PubKey) ProtoMessage() {} -func (*PubKey) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{0} +func (x Direction) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *PubKey) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PubKey.Unmarshal(m, b) + +// Deprecated: Use Direction.Descriptor instead. +func (Direction) EnumDescriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{0} } -func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PubKey.Marshal(b, m, deterministic) + +type PubKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` } -func (m *PubKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_PubKey.Merge(m, src) + +func (x *PubKey) Reset() { + *x = PubKey{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PubKey) XXX_Size() int { - return xxx_messageInfo_PubKey.Size(m) + +func (x *PubKey) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PubKey) XXX_DiscardUnknown() { - xxx_messageInfo_PubKey.DiscardUnknown(m) + +func (*PubKey) ProtoMessage() {} + +func (x *PubKey) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PubKey proto.InternalMessageInfo +// Deprecated: Use PubKey.ProtoReflect.Descriptor instead. +func (*PubKey) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{0} +} -func (m *PubKey) GetPublicKey() []byte { - if m != nil { - return m.PublicKey +func (x *PubKey) GetPublicKey() []byte { + if x != nil { + return x.PublicKey } return nil } type CreateRequest struct { - Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` - Seed []byte `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateRequest) Reset() { *m = CreateRequest{} } -func (m *CreateRequest) String() string { return proto.CompactTextString(m) } -func (*CreateRequest) ProtoMessage() {} -func (*CreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{1} -} -func (m *CreateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateRequest.Unmarshal(m, b) + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` + Seed []byte `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"` } -func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateRequest.Marshal(b, m, deterministic) -} -func (m *CreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateRequest.Merge(m, src) + +func (x *CreateRequest) Reset() { + *x = CreateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateRequest) XXX_Size() int { - return xxx_messageInfo_CreateRequest.Size(m) + +func (x *CreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateRequest.DiscardUnknown(m) + +func (*CreateRequest) ProtoMessage() {} + +func (x *CreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CreateRequest proto.InternalMessageInfo +// Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead. +func (*CreateRequest) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{1} +} -func (m *CreateRequest) GetPassword() string { - if m != nil { - return m.Password +func (x *CreateRequest) GetPassword() string { + if x != nil { + return x.Password } return "" } -func (m *CreateRequest) GetSeed() []byte { - if m != nil { - return m.Seed +func (x *CreateRequest) GetSeed() []byte { + if x != nil { + return x.Seed } return nil } type LoadRequest struct { - Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *LoadRequest) Reset() { + *x = LoadRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LoadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LoadRequest) ProtoMessage() {} + +func (x *LoadRequest) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *LoadRequest) Reset() { *m = LoadRequest{} } -func (m *LoadRequest) String() string { return proto.CompactTextString(m) } -func (*LoadRequest) ProtoMessage() {} +// Deprecated: Use LoadRequest.ProtoReflect.Descriptor instead. func (*LoadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{2} + return file_wallet_proto_rawDescGZIP(), []int{2} } -func (m *LoadRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadRequest.Unmarshal(m, b) + +func (x *LoadRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" } -func (m *LoadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadRequest.Marshal(b, m, deterministic) + +type SessionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EdPk []byte `protobuf:"bytes,1,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"` + EdSig []byte `protobuf:"bytes,2,opt,name=ed_sig,json=edSig,proto3" json:"ed_sig,omitempty"` } -func (m *LoadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadRequest.Merge(m, src) + +func (x *SessionRequest) Reset() { + *x = SessionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LoadRequest) XXX_Size() int { - return xxx_messageInfo_LoadRequest.Size(m) + +func (x *SessionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LoadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoadRequest.DiscardUnknown(m) + +func (*SessionRequest) ProtoMessage() {} + +func (x *SessionRequest) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LoadRequest proto.InternalMessageInfo +// Deprecated: Use SessionRequest.ProtoReflect.Descriptor instead. +func (*SessionRequest) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{3} +} -func (m *LoadRequest) GetPassword() string { - if m != nil { - return m.Password +func (x *SessionRequest) GetEdPk() []byte { + if x != nil { + return x.EdPk } - return "" + return nil } -type LoadResponse struct { - Key *PubKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *SessionRequest) GetEdSig() []byte { + if x != nil { + return x.EdSig + } + return nil } -func (m *LoadResponse) Reset() { *m = LoadResponse{} } -func (m *LoadResponse) String() string { return proto.CompactTextString(m) } -func (*LoadResponse) ProtoMessage() {} -func (*LoadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{3} +type Session struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` } -func (m *LoadResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadResponse.Unmarshal(m, b) + +func (x *Session) Reset() { + *x = Session{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LoadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadResponse.Marshal(b, m, deterministic) + +func (x *Session) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LoadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadResponse.Merge(m, src) + +func (*Session) ProtoMessage() {} + +func (x *Session) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *LoadResponse) XXX_Size() int { - return xxx_messageInfo_LoadResponse.Size(m) + +// Deprecated: Use Session.ProtoReflect.Descriptor instead. +func (*Session) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{4} } -func (m *LoadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LoadResponse.DiscardUnknown(m) + +func (x *Session) GetAccessToken() string { + if x != nil { + return x.AccessToken + } + return "" } -var xxx_messageInfo_LoadResponse proto.InternalMessageInfo +type LoadResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *LoadResponse) GetKey() *PubKey { - if m != nil { - return m.Key + Key *PubKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` +} + +func (x *LoadResponse) Reset() { + *x = LoadResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ConsensusTxRequest struct { - Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` - LockTime uint64 `protobuf:"fixed64,2,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *LoadResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConsensusTxRequest) Reset() { *m = ConsensusTxRequest{} } -func (m *ConsensusTxRequest) String() string { return proto.CompactTextString(m) } -func (*ConsensusTxRequest) ProtoMessage() {} -func (*ConsensusTxRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{4} +func (*LoadResponse) ProtoMessage() {} + +func (x *LoadResponse) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ConsensusTxRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConsensusTxRequest.Unmarshal(m, b) + +// Deprecated: Use LoadResponse.ProtoReflect.Descriptor instead. +func (*LoadResponse) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{5} } -func (m *ConsensusTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConsensusTxRequest.Marshal(b, m, deterministic) + +func (x *LoadResponse) GetKey() *PubKey { + if x != nil { + return x.Key + } + return nil } -func (m *ConsensusTxRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConsensusTxRequest.Merge(m, src) + +type ConsensusTxRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` + LockTime uint64 `protobuf:"fixed64,2,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` +} + +func (x *ConsensusTxRequest) Reset() { + *x = ConsensusTxRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ConsensusTxRequest) XXX_Size() int { - return xxx_messageInfo_ConsensusTxRequest.Size(m) + +func (x *ConsensusTxRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ConsensusTxRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ConsensusTxRequest.DiscardUnknown(m) + +func (*ConsensusTxRequest) ProtoMessage() {} + +func (x *ConsensusTxRequest) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ConsensusTxRequest proto.InternalMessageInfo +// Deprecated: Use ConsensusTxRequest.ProtoReflect.Descriptor instead. +func (*ConsensusTxRequest) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{6} +} -func (m *ConsensusTxRequest) GetAmount() uint64 { - if m != nil { - return m.Amount +func (x *ConsensusTxRequest) GetAmount() uint64 { + if x != nil { + return x.Amount } return 0 } -func (m *ConsensusTxRequest) GetLockTime() uint64 { - if m != nil { - return m.LockTime +func (x *ConsensusTxRequest) GetLockTime() uint64 { + if x != nil { + return x.LockTime } return 0 } type CallContractRequest struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Fee uint64 `protobuf:"fixed64,3,opt,name=fee,proto3" json:"fee,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CallContractRequest) Reset() { *m = CallContractRequest{} } -func (m *CallContractRequest) String() string { return proto.CompactTextString(m) } -func (*CallContractRequest) ProtoMessage() {} -func (*CallContractRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{5} -} -func (m *CallContractRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CallContractRequest.Unmarshal(m, b) -} -func (m *CallContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CallContractRequest.Marshal(b, m, deterministic) + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Fee uint64 `protobuf:"fixed64,3,opt,name=fee,proto3" json:"fee,omitempty"` } -func (m *CallContractRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CallContractRequest.Merge(m, src) + +func (x *CallContractRequest) Reset() { + *x = CallContractRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CallContractRequest) XXX_Size() int { - return xxx_messageInfo_CallContractRequest.Size(m) + +func (x *CallContractRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CallContractRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CallContractRequest.DiscardUnknown(m) + +func (*CallContractRequest) ProtoMessage() {} + +func (x *CallContractRequest) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CallContractRequest proto.InternalMessageInfo +// Deprecated: Use CallContractRequest.ProtoReflect.Descriptor instead. +func (*CallContractRequest) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{7} +} -func (m *CallContractRequest) GetData() []byte { - if m != nil { - return m.Data +func (x *CallContractRequest) GetData() []byte { + if x != nil { + return x.Data } return nil } -func (m *CallContractRequest) GetAddress() []byte { - if m != nil { - return m.Address +func (x *CallContractRequest) GetAddress() []byte { + if x != nil { + return x.Address } return nil } -func (m *CallContractRequest) GetFee() uint64 { - if m != nil { - return m.Fee +func (x *CallContractRequest) GetFee() uint64 { + if x != nil { + return x.Fee } return 0 } type TransferRequest struct { - Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` - Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Fee uint64 `protobuf:"fixed64,3,opt,name=fee,proto3" json:"fee,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TransferRequest) Reset() { *m = TransferRequest{} } -func (m *TransferRequest) String() string { return proto.CompactTextString(m) } -func (*TransferRequest) ProtoMessage() {} -func (*TransferRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{6} -} -func (m *TransferRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TransferRequest.Unmarshal(m, b) + Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Fee uint64 `protobuf:"fixed64,3,opt,name=fee,proto3" json:"fee,omitempty"` } -func (m *TransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TransferRequest.Marshal(b, m, deterministic) -} -func (m *TransferRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransferRequest.Merge(m, src) + +func (x *TransferRequest) Reset() { + *x = TransferRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TransferRequest) XXX_Size() int { - return xxx_messageInfo_TransferRequest.Size(m) + +func (x *TransferRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TransferRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TransferRequest.DiscardUnknown(m) + +func (*TransferRequest) ProtoMessage() {} + +func (x *TransferRequest) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TransferRequest proto.InternalMessageInfo +// Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead. +func (*TransferRequest) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{8} +} -func (m *TransferRequest) GetAmount() uint64 { - if m != nil { - return m.Amount +func (x *TransferRequest) GetAmount() uint64 { + if x != nil { + return x.Amount } return 0 } -func (m *TransferRequest) GetAddress() []byte { - if m != nil { - return m.Address +func (x *TransferRequest) GetAddress() []byte { + if x != nil { + return x.Address } return nil } -func (m *TransferRequest) GetFee() uint64 { - if m != nil { - return m.Fee +func (x *TransferRequest) GetFee() uint64 { + if x != nil { + return x.Fee } return 0 } type BidRequest struct { - Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` - Fee uint64 `protobuf:"fixed64,2,opt,name=fee,proto3" json:"fee,omitempty"` - Locktime uint64 `protobuf:"fixed64,3,opt,name=locktime,proto3" json:"locktime,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BidRequest) Reset() { *m = BidRequest{} } -func (m *BidRequest) String() string { return proto.CompactTextString(m) } -func (*BidRequest) ProtoMessage() {} -func (*BidRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{7} -} -func (m *BidRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BidRequest.Unmarshal(m, b) + Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` + Fee uint64 `protobuf:"fixed64,2,opt,name=fee,proto3" json:"fee,omitempty"` + Locktime uint64 `protobuf:"fixed64,3,opt,name=locktime,proto3" json:"locktime,omitempty"` } -func (m *BidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BidRequest.Marshal(b, m, deterministic) -} -func (m *BidRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BidRequest.Merge(m, src) + +func (x *BidRequest) Reset() { + *x = BidRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BidRequest) XXX_Size() int { - return xxx_messageInfo_BidRequest.Size(m) + +func (x *BidRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BidRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BidRequest.DiscardUnknown(m) + +func (*BidRequest) ProtoMessage() {} + +func (x *BidRequest) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BidRequest proto.InternalMessageInfo +// Deprecated: Use BidRequest.ProtoReflect.Descriptor instead. +func (*BidRequest) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{9} +} -func (m *BidRequest) GetAmount() uint64 { - if m != nil { - return m.Amount +func (x *BidRequest) GetAmount() uint64 { + if x != nil { + return x.Amount } return 0 } -func (m *BidRequest) GetFee() uint64 { - if m != nil { - return m.Fee +func (x *BidRequest) GetFee() uint64 { + if x != nil { + return x.Fee } return 0 } -func (m *BidRequest) GetLocktime() uint64 { - if m != nil { - return m.Locktime +func (x *BidRequest) GetLocktime() uint64 { + if x != nil { + return x.Locktime } return 0 } type StakeRequest struct { - Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` - Fee uint64 `protobuf:"fixed64,2,opt,name=fee,proto3" json:"fee,omitempty"` - Locktime uint64 `protobuf:"fixed64,3,opt,name=locktime,proto3" json:"locktime,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StakeRequest) Reset() { *m = StakeRequest{} } -func (m *StakeRequest) String() string { return proto.CompactTextString(m) } -func (*StakeRequest) ProtoMessage() {} -func (*StakeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{8} + Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` + Fee uint64 `protobuf:"fixed64,2,opt,name=fee,proto3" json:"fee,omitempty"` + Locktime uint64 `protobuf:"fixed64,3,opt,name=locktime,proto3" json:"locktime,omitempty"` } -func (m *StakeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StakeRequest.Unmarshal(m, b) -} -func (m *StakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StakeRequest.Marshal(b, m, deterministic) -} -func (m *StakeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StakeRequest.Merge(m, src) + +func (x *StakeRequest) Reset() { + *x = StakeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StakeRequest) XXX_Size() int { - return xxx_messageInfo_StakeRequest.Size(m) + +func (x *StakeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StakeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StakeRequest.DiscardUnknown(m) + +func (*StakeRequest) ProtoMessage() {} + +func (x *StakeRequest) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StakeRequest proto.InternalMessageInfo +// Deprecated: Use StakeRequest.ProtoReflect.Descriptor instead. +func (*StakeRequest) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{10} +} -func (m *StakeRequest) GetAmount() uint64 { - if m != nil { - return m.Amount +func (x *StakeRequest) GetAmount() uint64 { + if x != nil { + return x.Amount } return 0 } -func (m *StakeRequest) GetFee() uint64 { - if m != nil { - return m.Fee +func (x *StakeRequest) GetFee() uint64 { + if x != nil { + return x.Fee } return 0 } -func (m *StakeRequest) GetLocktime() uint64 { - if m != nil { - return m.Locktime +func (x *StakeRequest) GetLocktime() uint64 { + if x != nil { + return x.Locktime } return 0 } type TransactionResponse struct { - Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TransactionResponse) Reset() { *m = TransactionResponse{} } -func (m *TransactionResponse) String() string { return proto.CompactTextString(m) } -func (*TransactionResponse) ProtoMessage() {} -func (*TransactionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{9} -} -func (m *TransactionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TransactionResponse.Unmarshal(m, b) -} -func (m *TransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TransactionResponse.Marshal(b, m, deterministic) + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } -func (m *TransactionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransactionResponse.Merge(m, src) + +func (x *TransactionResponse) Reset() { + *x = TransactionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TransactionResponse) XXX_Size() int { - return xxx_messageInfo_TransactionResponse.Size(m) + +func (x *TransactionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TransactionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TransactionResponse.DiscardUnknown(m) + +func (*TransactionResponse) ProtoMessage() {} + +func (x *TransactionResponse) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TransactionResponse proto.InternalMessageInfo +// Deprecated: Use TransactionResponse.ProtoReflect.Descriptor instead. +func (*TransactionResponse) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{11} +} -func (m *TransactionResponse) GetHash() []byte { - if m != nil { - return m.Hash +func (x *TransactionResponse) GetHash() []byte { + if x != nil { + return x.Hash } return nil } type WalletStatusResponse struct { - Loaded bool `protobuf:"varint,1,opt,name=loaded,proto3" json:"loaded,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WalletStatusResponse) Reset() { *m = WalletStatusResponse{} } -func (m *WalletStatusResponse) String() string { return proto.CompactTextString(m) } -func (*WalletStatusResponse) ProtoMessage() {} -func (*WalletStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{10} + Loaded bool `protobuf:"varint,1,opt,name=loaded,proto3" json:"loaded,omitempty"` } -func (m *WalletStatusResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WalletStatusResponse.Unmarshal(m, b) -} -func (m *WalletStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WalletStatusResponse.Marshal(b, m, deterministic) -} -func (m *WalletStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WalletStatusResponse.Merge(m, src) + +func (x *WalletStatusResponse) Reset() { + *x = WalletStatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WalletStatusResponse) XXX_Size() int { - return xxx_messageInfo_WalletStatusResponse.Size(m) + +func (x *WalletStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WalletStatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WalletStatusResponse.DiscardUnknown(m) + +func (*WalletStatusResponse) ProtoMessage() {} + +func (x *WalletStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WalletStatusResponse proto.InternalMessageInfo +// Deprecated: Use WalletStatusResponse.ProtoReflect.Descriptor instead. +func (*WalletStatusResponse) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{12} +} -func (m *WalletStatusResponse) GetLoaded() bool { - if m != nil { - return m.Loaded +func (x *WalletStatusResponse) GetLoaded() bool { + if x != nil { + return x.Loaded } return false } type SyncProgressResponse struct { - Progress float32 `protobuf:"fixed32,1,opt,name=progress,proto3" json:"progress,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SyncProgressResponse) Reset() { *m = SyncProgressResponse{} } -func (m *SyncProgressResponse) String() string { return proto.CompactTextString(m) } -func (*SyncProgressResponse) ProtoMessage() {} -func (*SyncProgressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{11} -} -func (m *SyncProgressResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SyncProgressResponse.Unmarshal(m, b) + Progress float32 `protobuf:"fixed32,1,opt,name=progress,proto3" json:"progress,omitempty"` } -func (m *SyncProgressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SyncProgressResponse.Marshal(b, m, deterministic) -} -func (m *SyncProgressResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncProgressResponse.Merge(m, src) + +func (x *SyncProgressResponse) Reset() { + *x = SyncProgressResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SyncProgressResponse) XXX_Size() int { - return xxx_messageInfo_SyncProgressResponse.Size(m) + +func (x *SyncProgressResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SyncProgressResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SyncProgressResponse.DiscardUnknown(m) + +func (*SyncProgressResponse) ProtoMessage() {} + +func (x *SyncProgressResponse) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SyncProgressResponse proto.InternalMessageInfo +// Deprecated: Use SyncProgressResponse.ProtoReflect.Descriptor instead. +func (*SyncProgressResponse) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{13} +} -func (m *SyncProgressResponse) GetProgress() float32 { - if m != nil { - return m.Progress +func (x *SyncProgressResponse) GetProgress() float32 { + if x != nil { + return x.Progress } return 0 } type BalanceResponse struct { - UnlockedBalance uint64 `protobuf:"fixed64,1,opt,name=unlockedBalance,proto3" json:"unlockedBalance,omitempty"` - LockedBalance uint64 `protobuf:"fixed64,2,opt,name=lockedBalance,proto3" json:"lockedBalance,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BalanceResponse) Reset() { *m = BalanceResponse{} } -func (m *BalanceResponse) String() string { return proto.CompactTextString(m) } -func (*BalanceResponse) ProtoMessage() {} -func (*BalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{12} + UnlockedBalance uint64 `protobuf:"fixed64,1,opt,name=unlockedBalance,proto3" json:"unlockedBalance,omitempty"` + LockedBalance uint64 `protobuf:"fixed64,2,opt,name=lockedBalance,proto3" json:"lockedBalance,omitempty"` } -func (m *BalanceResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BalanceResponse.Unmarshal(m, b) -} -func (m *BalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BalanceResponse.Marshal(b, m, deterministic) -} -func (m *BalanceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BalanceResponse.Merge(m, src) + +func (x *BalanceResponse) Reset() { + *x = BalanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BalanceResponse) XXX_Size() int { - return xxx_messageInfo_BalanceResponse.Size(m) + +func (x *BalanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BalanceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BalanceResponse.DiscardUnknown(m) + +func (*BalanceResponse) ProtoMessage() {} + +func (x *BalanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BalanceResponse proto.InternalMessageInfo +// Deprecated: Use BalanceResponse.ProtoReflect.Descriptor instead. +func (*BalanceResponse) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{14} +} -func (m *BalanceResponse) GetUnlockedBalance() uint64 { - if m != nil { - return m.UnlockedBalance +func (x *BalanceResponse) GetUnlockedBalance() uint64 { + if x != nil { + return x.UnlockedBalance } return 0 } -func (m *BalanceResponse) GetLockedBalance() uint64 { - if m != nil { - return m.LockedBalance +func (x *BalanceResponse) GetLockedBalance() uint64 { + if x != nil { + return x.LockedBalance } return 0 } type TxRecord struct { - Height uint64 `protobuf:"fixed64,1,opt,name=height,proto3" json:"height,omitempty"` - Direction Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=node.Direction" json:"direction,omitempty"` - Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Type TxType `protobuf:"varint,4,opt,name=type,proto3,enum=node.TxType" json:"type,omitempty"` - Amount uint64 `protobuf:"fixed64,5,opt,name=amount,proto3" json:"amount,omitempty"` - Fee uint64 `protobuf:"fixed64,6,opt,name=fee,proto3" json:"fee,omitempty"` - UnlockHeight uint64 `protobuf:"fixed64,7,opt,name=unlockHeight,proto3" json:"unlockHeight,omitempty"` - Hash []byte `protobuf:"bytes,8,opt,name=hash,proto3" json:"hash,omitempty"` - Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` - Obfuscated bool `protobuf:"varint,10,opt,name=obfuscated,proto3" json:"obfuscated,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TxRecord) Reset() { *m = TxRecord{} } -func (m *TxRecord) String() string { return proto.CompactTextString(m) } -func (*TxRecord) ProtoMessage() {} -func (*TxRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{13} -} -func (m *TxRecord) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TxRecord.Unmarshal(m, b) -} -func (m *TxRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TxRecord.Marshal(b, m, deterministic) -} -func (m *TxRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxRecord.Merge(m, src) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Height uint64 `protobuf:"fixed64,1,opt,name=height,proto3" json:"height,omitempty"` + Direction Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=node.Direction" json:"direction,omitempty"` + Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Type TxType `protobuf:"varint,4,opt,name=type,proto3,enum=node.TxType" json:"type,omitempty"` + Amount uint64 `protobuf:"fixed64,5,opt,name=amount,proto3" json:"amount,omitempty"` + Fee uint64 `protobuf:"fixed64,6,opt,name=fee,proto3" json:"fee,omitempty"` + UnlockHeight uint64 `protobuf:"fixed64,7,opt,name=unlockHeight,proto3" json:"unlockHeight,omitempty"` + Hash []byte `protobuf:"bytes,8,opt,name=hash,proto3" json:"hash,omitempty"` + Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` + Obfuscated bool `protobuf:"varint,10,opt,name=obfuscated,proto3" json:"obfuscated,omitempty"` +} + +func (x *TxRecord) Reset() { + *x = TxRecord{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TxRecord) XXX_Size() int { - return xxx_messageInfo_TxRecord.Size(m) + +func (x *TxRecord) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TxRecord) XXX_DiscardUnknown() { - xxx_messageInfo_TxRecord.DiscardUnknown(m) + +func (*TxRecord) ProtoMessage() {} + +func (x *TxRecord) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TxRecord proto.InternalMessageInfo +// Deprecated: Use TxRecord.ProtoReflect.Descriptor instead. +func (*TxRecord) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{15} +} -func (m *TxRecord) GetHeight() uint64 { - if m != nil { - return m.Height +func (x *TxRecord) GetHeight() uint64 { + if x != nil { + return x.Height } return 0 } -func (m *TxRecord) GetDirection() Direction { - if m != nil { - return m.Direction +func (x *TxRecord) GetDirection() Direction { + if x != nil { + return x.Direction } return Direction_OUT } -func (m *TxRecord) GetTimestamp() int64 { - if m != nil { - return m.Timestamp +func (x *TxRecord) GetTimestamp() int64 { + if x != nil { + return x.Timestamp } return 0 } -func (m *TxRecord) GetType() TxType { - if m != nil { - return m.Type +func (x *TxRecord) GetType() TxType { + if x != nil { + return x.Type } return TxType_STANDARD } -func (m *TxRecord) GetAmount() uint64 { - if m != nil { - return m.Amount +func (x *TxRecord) GetAmount() uint64 { + if x != nil { + return x.Amount } return 0 } -func (m *TxRecord) GetFee() uint64 { - if m != nil { - return m.Fee +func (x *TxRecord) GetFee() uint64 { + if x != nil { + return x.Fee } return 0 } -func (m *TxRecord) GetUnlockHeight() uint64 { - if m != nil { - return m.UnlockHeight +func (x *TxRecord) GetUnlockHeight() uint64 { + if x != nil { + return x.UnlockHeight } return 0 } -func (m *TxRecord) GetHash() []byte { - if m != nil { - return m.Hash +func (x *TxRecord) GetHash() []byte { + if x != nil { + return x.Hash } return nil } -func (m *TxRecord) GetData() []byte { - if m != nil { - return m.Data +func (x *TxRecord) GetData() []byte { + if x != nil { + return x.Data } return nil } -func (m *TxRecord) GetObfuscated() bool { - if m != nil { - return m.Obfuscated +func (x *TxRecord) GetObfuscated() bool { + if x != nil { + return x.Obfuscated } return false } type TxHistoryResponse struct { - Records []*TxRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TxHistoryResponse) Reset() { *m = TxHistoryResponse{} } -func (m *TxHistoryResponse) String() string { return proto.CompactTextString(m) } -func (*TxHistoryResponse) ProtoMessage() {} -func (*TxHistoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b88fd140af4deb6f, []int{14} -} -func (m *TxHistoryResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TxHistoryResponse.Unmarshal(m, b) + Records []*TxRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` } -func (m *TxHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TxHistoryResponse.Marshal(b, m, deterministic) -} -func (m *TxHistoryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxHistoryResponse.Merge(m, src) + +func (x *TxHistoryResponse) Reset() { + *x = TxHistoryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wallet_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TxHistoryResponse) XXX_Size() int { - return xxx_messageInfo_TxHistoryResponse.Size(m) + +func (x *TxHistoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TxHistoryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TxHistoryResponse.DiscardUnknown(m) + +func (*TxHistoryResponse) ProtoMessage() {} + +func (x *TxHistoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_wallet_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TxHistoryResponse proto.InternalMessageInfo +// Deprecated: Use TxHistoryResponse.ProtoReflect.Descriptor instead. +func (*TxHistoryResponse) Descriptor() ([]byte, []int) { + return file_wallet_proto_rawDescGZIP(), []int{16} +} -func (m *TxHistoryResponse) GetRecords() []*TxRecord { - if m != nil { - return m.Records +func (x *TxHistoryResponse) GetRecords() []*TxRecord { + if x != nil { + return x.Records } return nil } -func init() { - proto.RegisterEnum("node.Direction", Direction_name, Direction_value) - proto.RegisterType((*PubKey)(nil), "node.PubKey") - proto.RegisterType((*CreateRequest)(nil), "node.CreateRequest") - proto.RegisterType((*LoadRequest)(nil), "node.LoadRequest") - proto.RegisterType((*LoadResponse)(nil), "node.LoadResponse") - proto.RegisterType((*ConsensusTxRequest)(nil), "node.ConsensusTxRequest") - proto.RegisterType((*CallContractRequest)(nil), "node.CallContractRequest") - proto.RegisterType((*TransferRequest)(nil), "node.TransferRequest") - proto.RegisterType((*BidRequest)(nil), "node.BidRequest") - proto.RegisterType((*StakeRequest)(nil), "node.StakeRequest") - proto.RegisterType((*TransactionResponse)(nil), "node.TransactionResponse") - proto.RegisterType((*WalletStatusResponse)(nil), "node.WalletStatusResponse") - proto.RegisterType((*SyncProgressResponse)(nil), "node.SyncProgressResponse") - proto.RegisterType((*BalanceResponse)(nil), "node.BalanceResponse") - proto.RegisterType((*TxRecord)(nil), "node.TxRecord") - proto.RegisterType((*TxHistoryResponse)(nil), "node.TxHistoryResponse") -} - -func init() { proto.RegisterFile("wallet.proto", fileDescriptor_b88fd140af4deb6f) } - -var fileDescriptor_b88fd140af4deb6f = []byte{ - // 631 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x5d, 0x6b, 0xdb, 0x4a, - 0x10, 0xbd, 0xb1, 0x7c, 0x65, 0x6b, 0xe2, 0xc4, 0xb9, 0x9b, 0x10, 0x4c, 0x6e, 0x1a, 0xc2, 0x52, - 0xa8, 0x13, 0x88, 0x0d, 0xee, 0x73, 0x29, 0xc4, 0x7d, 0x48, 0x48, 0x69, 0xc3, 0x46, 0xa1, 0xd0, - 0x97, 0xb0, 0xd6, 0x8e, 0x6d, 0x61, 0x49, 0xab, 0x6a, 0x57, 0x24, 0xfa, 0x45, 0xfd, 0x9b, 0x65, - 0x57, 0x1f, 0x76, 0x4a, 0x21, 0x2d, 0xf4, 0x6d, 0xe7, 0xcc, 0xec, 0xd1, 0xcc, 0x39, 0xb3, 0x82, - 0xde, 0x23, 0x8f, 0x22, 0xd4, 0xa3, 0x34, 0x93, 0x5a, 0x92, 0x76, 0x22, 0x05, 0x1e, 0xed, 0xc4, - 0x18, 0xa7, 0x52, 0x46, 0x25, 0x48, 0xdf, 0x80, 0x7b, 0x9b, 0xcf, 0x6e, 0xb0, 0x20, 0xaf, 0x00, - 0xd2, 0x7c, 0x16, 0x85, 0xc1, 0xc3, 0x0a, 0x8b, 0xc1, 0xd6, 0xe9, 0xd6, 0xb0, 0xc7, 0xbc, 0x12, - 0xb9, 0xc1, 0x82, 0xbe, 0x87, 0x9d, 0x69, 0x86, 0x5c, 0x23, 0xc3, 0x6f, 0x39, 0x2a, 0x4d, 0x8e, - 0xa0, 0x9b, 0x72, 0xa5, 0x1e, 0x65, 0x26, 0x6c, 0xb5, 0xc7, 0x9a, 0x98, 0x10, 0x68, 0x2b, 0x44, - 0x31, 0x68, 0x59, 0x16, 0x7b, 0xa6, 0x67, 0xb0, 0xfd, 0x51, 0x72, 0xf1, 0x1b, 0xd7, 0xe9, 0x08, - 0x7a, 0x65, 0xa9, 0x4a, 0x65, 0xa2, 0x90, 0x9c, 0x80, 0x53, 0xf7, 0xb4, 0x3d, 0xe9, 0x8d, 0xcc, - 0x1c, 0xa3, 0xb2, 0x6b, 0x66, 0x12, 0xf4, 0x1a, 0xc8, 0xd4, 0x14, 0x26, 0x2a, 0x57, 0xfe, 0x53, - 0xfd, 0x85, 0x43, 0x70, 0x79, 0x2c, 0xf3, 0x44, 0xdb, 0x8b, 0x2e, 0xab, 0x22, 0xf2, 0x3f, 0x78, - 0x91, 0x0c, 0x56, 0x0f, 0x3a, 0x8c, 0xd1, 0x76, 0xe8, 0xb2, 0xae, 0x01, 0xfc, 0x30, 0x46, 0x7a, - 0x0f, 0xfb, 0x53, 0x1e, 0x45, 0x53, 0x99, 0xe8, 0x8c, 0x07, 0xba, 0xe6, 0x22, 0xd0, 0x16, 0x5c, - 0xf3, 0x4a, 0x16, 0x7b, 0x26, 0x03, 0xe8, 0x70, 0x21, 0x32, 0x54, 0xaa, 0x9a, 0xb3, 0x0e, 0xc9, - 0x1e, 0x38, 0x73, 0xc4, 0x81, 0x63, 0xb9, 0xcd, 0x91, 0xde, 0x43, 0xdf, 0xcf, 0x78, 0xa2, 0xe6, - 0x98, 0xbd, 0xd4, 0xde, 0x9f, 0xd0, 0x32, 0x80, 0xcb, 0x50, 0xbc, 0xc4, 0x58, 0xdd, 0x6b, 0x35, - 0xf7, 0x8c, 0xf8, 0x66, 0x62, 0xab, 0x80, 0xb3, 0x56, 0xc0, 0xc4, 0xd4, 0x87, 0xde, 0x9d, 0xe6, - 0x2b, 0xfc, 0xbb, 0xac, 0x67, 0xb0, 0x6f, 0x05, 0xe0, 0x81, 0x0e, 0x65, 0xd2, 0x38, 0x4b, 0xa0, - 0xbd, 0xe4, 0x6a, 0x59, 0xeb, 0x6a, 0xce, 0x74, 0x04, 0x07, 0x5f, 0xec, 0xde, 0xde, 0x69, 0xae, - 0x73, 0xd5, 0xd4, 0x1e, 0x82, 0x1b, 0x49, 0x2e, 0xb0, 0xdc, 0x97, 0x2e, 0xab, 0x22, 0x3a, 0x81, - 0x83, 0xbb, 0x22, 0x09, 0x6e, 0x33, 0xb9, 0x30, 0x32, 0x35, 0xf5, 0x66, 0xc3, 0x2a, 0xcc, 0xde, - 0x68, 0xb1, 0x26, 0xa6, 0x1c, 0xfa, 0x97, 0x3c, 0xe2, 0x49, 0x80, 0x4d, 0xf9, 0x10, 0xfa, 0x79, - 0x62, 0xfa, 0x45, 0x51, 0xa5, 0xaa, 0x81, 0x7f, 0x86, 0xc9, 0x6b, 0xd8, 0x79, 0x5e, 0x57, 0x6a, - 0xf0, 0x1c, 0xa4, 0xdf, 0x5b, 0xd0, 0x35, 0xcb, 0x18, 0x98, 0x07, 0x71, 0x08, 0xee, 0x12, 0xc3, - 0xc5, 0xb2, 0x11, 0xb1, 0x8c, 0xc8, 0x05, 0x78, 0x22, 0xcc, 0xd0, 0x8a, 0x62, 0x69, 0x76, 0x27, - 0xfd, 0x72, 0xbf, 0x3f, 0xd4, 0x30, 0x5b, 0x57, 0x90, 0x63, 0xf0, 0x8c, 0x9a, 0x4a, 0xf3, 0x38, - 0xb5, 0x12, 0x3b, 0x6c, 0x0d, 0x90, 0x53, 0x68, 0xeb, 0x22, 0xc5, 0x41, 0xdb, 0xf2, 0x54, 0xef, - 0xc4, 0x7f, 0xf2, 0x8b, 0x14, 0x99, 0xcd, 0x6c, 0x78, 0xf9, 0xef, 0xaf, 0xbc, 0x74, 0xd7, 0x5e, - 0x52, 0xe8, 0x95, 0x63, 0x5f, 0x95, 0x6d, 0x77, 0x6c, 0xea, 0x19, 0xd6, 0x98, 0xd7, 0x5d, 0x9b, - 0xd7, 0x3c, 0x14, 0x6f, 0xe3, 0xa1, 0x9c, 0x00, 0xc8, 0xd9, 0x3c, 0x57, 0x01, 0xd7, 0x28, 0x06, - 0x60, 0xcd, 0xdb, 0x40, 0xe8, 0x3b, 0xf8, 0xcf, 0x7f, 0xba, 0x0a, 0x95, 0x96, 0x59, 0xb1, 0x61, - 0x47, 0x27, 0xb3, 0xda, 0x19, 0xf3, 0x9c, 0xe1, 0xf6, 0x64, 0xb7, 0x9e, 0xa7, 0x94, 0x94, 0xd5, - 0xe9, 0xf3, 0x63, 0xf0, 0x1a, 0xb1, 0x48, 0x07, 0x9c, 0xcf, 0xf7, 0xfe, 0xde, 0x3f, 0xc4, 0x85, - 0xd6, 0xf5, 0xa7, 0xbd, 0xad, 0xcb, 0xf3, 0xaf, 0xc3, 0x45, 0xa8, 0x97, 0xf9, 0x6c, 0x14, 0xc8, - 0x78, 0x2c, 0x72, 0xb5, 0xba, 0xb0, 0x7f, 0xbe, 0x59, 0x3e, 0x1f, 0xf3, 0x5c, 0xcb, 0x05, 0x26, - 0xe3, 0x85, 0x1c, 0x1b, 0xee, 0x99, 0x6b, 0x33, 0x6f, 0x7f, 0x04, 0x00, 0x00, 0xff, 0xff, 0xdb, - 0x3f, 0x15, 0xbf, 0x38, 0x05, 0x00, 0x00, +var File_wallet_proto protoreflect.FileDescriptor + +var file_wallet_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, + 0x6e, 0x6f, 0x64, 0x65, 0x1a, 0x0d, 0x6d, 0x65, 0x6d, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x27, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x3f, 0x0a, 0x0d, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x22, 0x29, 0x0a, + 0x0b, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x3c, 0x0a, 0x0e, 0x53, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x13, 0x0a, 0x05, 0x65, 0x64, + 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x65, 0x64, 0x50, 0x6b, 0x12, + 0x15, 0x0a, 0x06, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x05, 0x65, 0x64, 0x53, 0x69, 0x67, 0x22, 0x2c, 0x0a, 0x07, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x2e, 0x0a, 0x0c, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0c, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x22, 0x49, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, + 0x73, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x22, + 0x55, 0x0a, 0x13, 0x43, 0x61, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x06, 0x52, 0x03, 0x66, 0x65, 0x65, 0x22, 0x55, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x66, + 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x66, 0x65, 0x65, 0x22, 0x52, 0x0a, + 0x0a, 0x42, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, + 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d, + 0x65, 0x22, 0x54, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x06, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, + 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x6c, + 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x29, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, + 0x73, 0x68, 0x22, 0x2e, 0x0a, 0x14, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, + 0x61, 0x64, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6c, 0x6f, 0x61, 0x64, + 0x65, 0x64, 0x22, 0x32, 0x0a, 0x14, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x70, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x61, 0x0a, 0x0f, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x6e, 0x6c, + 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x06, 0x52, 0x0f, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x0d, 0x6c, 0x6f, 0x63, 0x6b, + 0x65, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xa7, 0x02, 0x0a, 0x08, 0x54, 0x78, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2d, + 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x0f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, + 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x6e, 0x6f, 0x64, 0x65, + 0x2e, 0x54, 0x78, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x06, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x6e, 0x6c, 0x6f, 0x63, + 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x06, 0x52, 0x0c, 0x75, + 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, + 0x61, 0x73, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, + 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, + 0x74, 0x65, 0x64, 0x22, 0x3d, 0x0a, 0x11, 0x54, 0x78, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6e, 0x6f, 0x64, 0x65, + 0x2e, 0x54, 0x78, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x73, 0x2a, 0x1c, 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x07, 0x0a, 0x03, 0x4f, 0x55, 0x54, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x49, 0x4e, 0x10, 0x01, + 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, + 0x75, 0x73, 0x6b, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x75, 0x74, + 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_wallet_proto_rawDescOnce sync.Once + file_wallet_proto_rawDescData = file_wallet_proto_rawDesc +) + +func file_wallet_proto_rawDescGZIP() []byte { + file_wallet_proto_rawDescOnce.Do(func() { + file_wallet_proto_rawDescData = protoimpl.X.CompressGZIP(file_wallet_proto_rawDescData) + }) + return file_wallet_proto_rawDescData +} + +var file_wallet_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_wallet_proto_msgTypes = make([]protoimpl.MessageInfo, 17) +var file_wallet_proto_goTypes = []interface{}{ + (Direction)(0), // 0: node.Direction + (*PubKey)(nil), // 1: node.PubKey + (*CreateRequest)(nil), // 2: node.CreateRequest + (*LoadRequest)(nil), // 3: node.LoadRequest + (*SessionRequest)(nil), // 4: node.SessionRequest + (*Session)(nil), // 5: node.Session + (*LoadResponse)(nil), // 6: node.LoadResponse + (*ConsensusTxRequest)(nil), // 7: node.ConsensusTxRequest + (*CallContractRequest)(nil), // 8: node.CallContractRequest + (*TransferRequest)(nil), // 9: node.TransferRequest + (*BidRequest)(nil), // 10: node.BidRequest + (*StakeRequest)(nil), // 11: node.StakeRequest + (*TransactionResponse)(nil), // 12: node.TransactionResponse + (*WalletStatusResponse)(nil), // 13: node.WalletStatusResponse + (*SyncProgressResponse)(nil), // 14: node.SyncProgressResponse + (*BalanceResponse)(nil), // 15: node.BalanceResponse + (*TxRecord)(nil), // 16: node.TxRecord + (*TxHistoryResponse)(nil), // 17: node.TxHistoryResponse + (TxType)(0), // 18: node.TxType +} +var file_wallet_proto_depIdxs = []int32{ + 1, // 0: node.LoadResponse.key:type_name -> node.PubKey + 0, // 1: node.TxRecord.direction:type_name -> node.Direction + 18, // 2: node.TxRecord.type:type_name -> node.TxType + 16, // 3: node.TxHistoryResponse.records:type_name -> node.TxRecord + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_wallet_proto_init() } +func file_wallet_proto_init() { + if File_wallet_proto != nil { + return + } + file_mempool_proto_init() + if !protoimpl.UnsafeEnabled { + file_wallet_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PubKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SessionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Session); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoadResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConsensusTxRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CallContractRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransferRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BidRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StakeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WalletStatusResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SyncProgressResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BalanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TxRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wallet_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TxHistoryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_wallet_proto_rawDesc, + NumEnums: 1, + NumMessages: 17, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_wallet_proto_goTypes, + DependencyIndexes: file_wallet_proto_depIdxs, + EnumInfos: file_wallet_proto_enumTypes, + MessageInfos: file_wallet_proto_msgTypes, + }.Build() + File_wallet_proto = out.File + file_wallet_proto_rawDesc = nil + file_wallet_proto_goTypes = nil + file_wallet_proto_depIdxs = nil } diff --git a/autogen/go/rusk/consensus.pb.go b/autogen/go/rusk/consensus.pb.go index 06c8983..400089a 100644 --- a/autogen/go/rusk/consensus.pb.go +++ b/autogen/go/rusk/consensus.pb.go @@ -1,543 +1,795 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.21.0 +// protoc v3.11.4 // source: consensus.proto package rusk import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - math "math" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 // Call during block generation type DistributeTransaction struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ProvisionersAddresses [][]byte `protobuf:"bytes,1,rep,name=provisioners_addresses,json=provisionersAddresses,proto3" json:"provisioners_addresses,omitempty"` BgPk *PublicKey `protobuf:"bytes,2,opt,name=bg_pk,json=bgPk,proto3" json:"bg_pk,omitempty"` Tx *Transaction `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *DistributeTransaction) Reset() { *m = DistributeTransaction{} } -func (m *DistributeTransaction) String() string { return proto.CompactTextString(m) } -func (*DistributeTransaction) ProtoMessage() {} -func (*DistributeTransaction) Descriptor() ([]byte, []int) { - return fileDescriptor_56f0f2c53b3de771, []int{0} -} -func (m *DistributeTransaction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DistributeTransaction.Unmarshal(m, b) -} -func (m *DistributeTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DistributeTransaction.Marshal(b, m, deterministic) -} -func (m *DistributeTransaction) XXX_Merge(src proto.Message) { - xxx_messageInfo_DistributeTransaction.Merge(m, src) +func (x *DistributeTransaction) Reset() { + *x = DistributeTransaction{} + if protoimpl.UnsafeEnabled { + mi := &file_consensus_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DistributeTransaction) XXX_Size() int { - return xxx_messageInfo_DistributeTransaction.Size(m) + +func (x *DistributeTransaction) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DistributeTransaction) XXX_DiscardUnknown() { - xxx_messageInfo_DistributeTransaction.DiscardUnknown(m) + +func (*DistributeTransaction) ProtoMessage() {} + +func (x *DistributeTransaction) ProtoReflect() protoreflect.Message { + mi := &file_consensus_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_DistributeTransaction proto.InternalMessageInfo +// Deprecated: Use DistributeTransaction.ProtoReflect.Descriptor instead. +func (*DistributeTransaction) Descriptor() ([]byte, []int) { + return file_consensus_proto_rawDescGZIP(), []int{0} +} -func (m *DistributeTransaction) GetProvisionersAddresses() [][]byte { - if m != nil { - return m.ProvisionersAddresses +func (x *DistributeTransaction) GetProvisionersAddresses() [][]byte { + if x != nil { + return x.ProvisionersAddresses } return nil } -func (m *DistributeTransaction) GetBgPk() *PublicKey { - if m != nil { - return m.BgPk +func (x *DistributeTransaction) GetBgPk() *PublicKey { + if x != nil { + return x.BgPk } return nil } -func (m *DistributeTransaction) GetTx() *Transaction { - if m != nil { - return m.Tx +func (x *DistributeTransaction) GetTx() *Transaction { + if x != nil { + return x.Tx } return nil } // WithdrawFeesTransaction is the transaction for a Provisioner to withdraw the fees using the smart contract type WithdrawFeesTransaction struct { - BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` - Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` - Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` - Tx *Transaction `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WithdrawFeesTransaction) Reset() { *m = WithdrawFeesTransaction{} } -func (m *WithdrawFeesTransaction) String() string { return proto.CompactTextString(m) } -func (*WithdrawFeesTransaction) ProtoMessage() {} -func (*WithdrawFeesTransaction) Descriptor() ([]byte, []int) { - return fileDescriptor_56f0f2c53b3de771, []int{1} -} -func (m *WithdrawFeesTransaction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WithdrawFeesTransaction.Unmarshal(m, b) -} -func (m *WithdrawFeesTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WithdrawFeesTransaction.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` + Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` + Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` + Tx *Transaction `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` } -func (m *WithdrawFeesTransaction) XXX_Merge(src proto.Message) { - xxx_messageInfo_WithdrawFeesTransaction.Merge(m, src) + +func (x *WithdrawFeesTransaction) Reset() { + *x = WithdrawFeesTransaction{} + if protoimpl.UnsafeEnabled { + mi := &file_consensus_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WithdrawFeesTransaction) XXX_Size() int { - return xxx_messageInfo_WithdrawFeesTransaction.Size(m) + +func (x *WithdrawFeesTransaction) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WithdrawFeesTransaction) XXX_DiscardUnknown() { - xxx_messageInfo_WithdrawFeesTransaction.DiscardUnknown(m) + +func (*WithdrawFeesTransaction) ProtoMessage() {} + +func (x *WithdrawFeesTransaction) ProtoReflect() protoreflect.Message { + mi := &file_consensus_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WithdrawFeesTransaction proto.InternalMessageInfo +// Deprecated: Use WithdrawFeesTransaction.ProtoReflect.Descriptor instead. +func (*WithdrawFeesTransaction) Descriptor() ([]byte, []int) { + return file_consensus_proto_rawDescGZIP(), []int{1} +} -func (m *WithdrawFeesTransaction) GetBlsKey() []byte { - if m != nil { - return m.BlsKey +func (x *WithdrawFeesTransaction) GetBlsKey() []byte { + if x != nil { + return x.BlsKey } return nil } -func (m *WithdrawFeesTransaction) GetSig() []byte { - if m != nil { - return m.Sig +func (x *WithdrawFeesTransaction) GetSig() []byte { + if x != nil { + return x.Sig } return nil } -func (m *WithdrawFeesTransaction) GetMsg() []byte { - if m != nil { - return m.Msg +func (x *WithdrawFeesTransaction) GetMsg() []byte { + if x != nil { + return x.Msg } return nil } -func (m *WithdrawFeesTransaction) GetTx() *Transaction { - if m != nil { - return m.Tx +func (x *WithdrawFeesTransaction) GetTx() *Transaction { + if x != nil { + return x.Tx } return nil } // Call from consensus type SlashTransaction struct { - BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` - Step uint32 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"` - Round uint64 `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"` - FirstMsg []byte `protobuf:"bytes,4,opt,name=first_msg,json=firstMsg,proto3" json:"first_msg,omitempty"` - FirstSig []byte `protobuf:"bytes,5,opt,name=first_sig,json=firstSig,proto3" json:"first_sig,omitempty"` - SecondMsg []byte `protobuf:"bytes,6,opt,name=second_msg,json=secondMsg,proto3" json:"second_msg,omitempty"` - SecondSig []byte `protobuf:"bytes,7,opt,name=second_sig,json=secondSig,proto3" json:"second_sig,omitempty"` - Tx *Transaction `protobuf:"bytes,8,opt,name=tx,proto3" json:"tx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SlashTransaction) Reset() { *m = SlashTransaction{} } -func (m *SlashTransaction) String() string { return proto.CompactTextString(m) } -func (*SlashTransaction) ProtoMessage() {} -func (*SlashTransaction) Descriptor() ([]byte, []int) { - return fileDescriptor_56f0f2c53b3de771, []int{2} -} -func (m *SlashTransaction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SlashTransaction.Unmarshal(m, b) -} -func (m *SlashTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SlashTransaction.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` + Step uint32 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"` + Round uint64 `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"` + FirstMsg []byte `protobuf:"bytes,4,opt,name=first_msg,json=firstMsg,proto3" json:"first_msg,omitempty"` + FirstSig []byte `protobuf:"bytes,5,opt,name=first_sig,json=firstSig,proto3" json:"first_sig,omitempty"` + SecondMsg []byte `protobuf:"bytes,6,opt,name=second_msg,json=secondMsg,proto3" json:"second_msg,omitempty"` + SecondSig []byte `protobuf:"bytes,7,opt,name=second_sig,json=secondSig,proto3" json:"second_sig,omitempty"` + Tx *Transaction `protobuf:"bytes,8,opt,name=tx,proto3" json:"tx,omitempty"` } -func (m *SlashTransaction) XXX_Merge(src proto.Message) { - xxx_messageInfo_SlashTransaction.Merge(m, src) + +func (x *SlashTransaction) Reset() { + *x = SlashTransaction{} + if protoimpl.UnsafeEnabled { + mi := &file_consensus_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SlashTransaction) XXX_Size() int { - return xxx_messageInfo_SlashTransaction.Size(m) + +func (x *SlashTransaction) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SlashTransaction) XXX_DiscardUnknown() { - xxx_messageInfo_SlashTransaction.DiscardUnknown(m) + +func (*SlashTransaction) ProtoMessage() {} + +func (x *SlashTransaction) ProtoReflect() protoreflect.Message { + mi := &file_consensus_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SlashTransaction proto.InternalMessageInfo +// Deprecated: Use SlashTransaction.ProtoReflect.Descriptor instead. +func (*SlashTransaction) Descriptor() ([]byte, []int) { + return file_consensus_proto_rawDescGZIP(), []int{2} +} -func (m *SlashTransaction) GetBlsKey() []byte { - if m != nil { - return m.BlsKey +func (x *SlashTransaction) GetBlsKey() []byte { + if x != nil { + return x.BlsKey } return nil } -func (m *SlashTransaction) GetStep() uint32 { - if m != nil { - return m.Step +func (x *SlashTransaction) GetStep() uint32 { + if x != nil { + return x.Step } return 0 } -func (m *SlashTransaction) GetRound() uint64 { - if m != nil { - return m.Round +func (x *SlashTransaction) GetRound() uint64 { + if x != nil { + return x.Round } return 0 } -func (m *SlashTransaction) GetFirstMsg() []byte { - if m != nil { - return m.FirstMsg +func (x *SlashTransaction) GetFirstMsg() []byte { + if x != nil { + return x.FirstMsg } return nil } -func (m *SlashTransaction) GetFirstSig() []byte { - if m != nil { - return m.FirstSig +func (x *SlashTransaction) GetFirstSig() []byte { + if x != nil { + return x.FirstSig } return nil } -func (m *SlashTransaction) GetSecondMsg() []byte { - if m != nil { - return m.SecondMsg +func (x *SlashTransaction) GetSecondMsg() []byte { + if x != nil { + return x.SecondMsg } return nil } -func (m *SlashTransaction) GetSecondSig() []byte { - if m != nil { - return m.SecondSig +func (x *SlashTransaction) GetSecondSig() []byte { + if x != nil { + return x.SecondSig } return nil } -func (m *SlashTransaction) GetTx() *Transaction { - if m != nil { - return m.Tx +func (x *SlashTransaction) GetTx() *Transaction { + if x != nil { + return x.Tx } return nil } // StakeTransaction is the transaction for the Stake used by the Provisioners to engage in committees type StakeTransaction struct { - BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` - ExpirationHeight uint64 `protobuf:"fixed64,2,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"` - Tx *Transaction `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StakeTransaction) Reset() { *m = StakeTransaction{} } -func (m *StakeTransaction) String() string { return proto.CompactTextString(m) } -func (*StakeTransaction) ProtoMessage() {} -func (*StakeTransaction) Descriptor() ([]byte, []int) { - return fileDescriptor_56f0f2c53b3de771, []int{3} + BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` + ExpirationHeight uint64 `protobuf:"fixed64,2,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"` + Tx *Transaction `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` } -func (m *StakeTransaction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StakeTransaction.Unmarshal(m, b) -} -func (m *StakeTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StakeTransaction.Marshal(b, m, deterministic) -} -func (m *StakeTransaction) XXX_Merge(src proto.Message) { - xxx_messageInfo_StakeTransaction.Merge(m, src) + +func (x *StakeTransaction) Reset() { + *x = StakeTransaction{} + if protoimpl.UnsafeEnabled { + mi := &file_consensus_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StakeTransaction) XXX_Size() int { - return xxx_messageInfo_StakeTransaction.Size(m) + +func (x *StakeTransaction) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StakeTransaction) XXX_DiscardUnknown() { - xxx_messageInfo_StakeTransaction.DiscardUnknown(m) + +func (*StakeTransaction) ProtoMessage() {} + +func (x *StakeTransaction) ProtoReflect() protoreflect.Message { + mi := &file_consensus_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StakeTransaction proto.InternalMessageInfo +// Deprecated: Use StakeTransaction.ProtoReflect.Descriptor instead. +func (*StakeTransaction) Descriptor() ([]byte, []int) { + return file_consensus_proto_rawDescGZIP(), []int{3} +} -func (m *StakeTransaction) GetBlsKey() []byte { - if m != nil { - return m.BlsKey +func (x *StakeTransaction) GetBlsKey() []byte { + if x != nil { + return x.BlsKey } return nil } -func (m *StakeTransaction) GetExpirationHeight() uint64 { - if m != nil { - return m.ExpirationHeight +func (x *StakeTransaction) GetExpirationHeight() uint64 { + if x != nil { + return x.ExpirationHeight } return 0 } -func (m *StakeTransaction) GetTx() *Transaction { - if m != nil { - return m.Tx +func (x *StakeTransaction) GetTx() *Transaction { + if x != nil { + return x.Tx } return nil } // BidTransaction is the transaction for the Bid used by the Block Generator to create a Score type BidTransaction struct { - M []byte `protobuf:"bytes,1,opt,name=m,proto3" json:"m,omitempty"` - Commitment []byte `protobuf:"bytes,2,opt,name=commitment,proto3" json:"commitment,omitempty"` - ExpirationHeight uint64 `protobuf:"fixed64,3,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"` - Pk []byte `protobuf:"bytes,4,opt,name=pk,proto3" json:"pk,omitempty"` - R []byte `protobuf:"bytes,5,opt,name=r,proto3" json:"r,omitempty"` - Seed []byte `protobuf:"bytes,6,opt,name=seed,proto3" json:"seed,omitempty"` - Tx *Transaction `protobuf:"bytes,7,opt,name=tx,proto3" json:"tx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BidTransaction) Reset() { *m = BidTransaction{} } -func (m *BidTransaction) String() string { return proto.CompactTextString(m) } -func (*BidTransaction) ProtoMessage() {} -func (*BidTransaction) Descriptor() ([]byte, []int) { - return fileDescriptor_56f0f2c53b3de771, []int{4} -} -func (m *BidTransaction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BidTransaction.Unmarshal(m, b) -} -func (m *BidTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BidTransaction.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + M []byte `protobuf:"bytes,1,opt,name=m,proto3" json:"m,omitempty"` + Commitment []byte `protobuf:"bytes,2,opt,name=commitment,proto3" json:"commitment,omitempty"` + ExpirationHeight uint64 `protobuf:"fixed64,3,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"` + Pk []byte `protobuf:"bytes,4,opt,name=pk,proto3" json:"pk,omitempty"` + R []byte `protobuf:"bytes,5,opt,name=r,proto3" json:"r,omitempty"` + Seed []byte `protobuf:"bytes,6,opt,name=seed,proto3" json:"seed,omitempty"` + Tx *Transaction `protobuf:"bytes,7,opt,name=tx,proto3" json:"tx,omitempty"` } -func (m *BidTransaction) XXX_Merge(src proto.Message) { - xxx_messageInfo_BidTransaction.Merge(m, src) + +func (x *BidTransaction) Reset() { + *x = BidTransaction{} + if protoimpl.UnsafeEnabled { + mi := &file_consensus_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BidTransaction) XXX_Size() int { - return xxx_messageInfo_BidTransaction.Size(m) + +func (x *BidTransaction) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BidTransaction) XXX_DiscardUnknown() { - xxx_messageInfo_BidTransaction.DiscardUnknown(m) + +func (*BidTransaction) ProtoMessage() {} + +func (x *BidTransaction) ProtoReflect() protoreflect.Message { + mi := &file_consensus_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BidTransaction proto.InternalMessageInfo +// Deprecated: Use BidTransaction.ProtoReflect.Descriptor instead. +func (*BidTransaction) Descriptor() ([]byte, []int) { + return file_consensus_proto_rawDescGZIP(), []int{4} +} -func (m *BidTransaction) GetM() []byte { - if m != nil { - return m.M +func (x *BidTransaction) GetM() []byte { + if x != nil { + return x.M } return nil } -func (m *BidTransaction) GetCommitment() []byte { - if m != nil { - return m.Commitment +func (x *BidTransaction) GetCommitment() []byte { + if x != nil { + return x.Commitment } return nil } -func (m *BidTransaction) GetExpirationHeight() uint64 { - if m != nil { - return m.ExpirationHeight +func (x *BidTransaction) GetExpirationHeight() uint64 { + if x != nil { + return x.ExpirationHeight } return 0 } -func (m *BidTransaction) GetPk() []byte { - if m != nil { - return m.Pk +func (x *BidTransaction) GetPk() []byte { + if x != nil { + return x.Pk } return nil } -func (m *BidTransaction) GetR() []byte { - if m != nil { - return m.R +func (x *BidTransaction) GetR() []byte { + if x != nil { + return x.R } return nil } -func (m *BidTransaction) GetSeed() []byte { - if m != nil { - return m.Seed +func (x *BidTransaction) GetSeed() []byte { + if x != nil { + return x.Seed } return nil } -func (m *BidTransaction) GetTx() *Transaction { - if m != nil { - return m.Tx +func (x *BidTransaction) GetTx() *Transaction { + if x != nil { + return x.Tx } return nil } // WithdrawBidTransaction is the transaction to withdraw a bid type WithdrawBidTransaction struct { - Commitment []byte `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` - Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` - EdPk []byte `protobuf:"bytes,3,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"` - Tx *Transaction `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WithdrawBidTransaction) Reset() { *m = WithdrawBidTransaction{} } -func (m *WithdrawBidTransaction) String() string { return proto.CompactTextString(m) } -func (*WithdrawBidTransaction) ProtoMessage() {} -func (*WithdrawBidTransaction) Descriptor() ([]byte, []int) { - return fileDescriptor_56f0f2c53b3de771, []int{5} -} -func (m *WithdrawBidTransaction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WithdrawBidTransaction.Unmarshal(m, b) -} -func (m *WithdrawBidTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WithdrawBidTransaction.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Commitment []byte `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` + Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` + EdPk []byte `protobuf:"bytes,3,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"` + Tx *Transaction `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` } -func (m *WithdrawBidTransaction) XXX_Merge(src proto.Message) { - xxx_messageInfo_WithdrawBidTransaction.Merge(m, src) + +func (x *WithdrawBidTransaction) Reset() { + *x = WithdrawBidTransaction{} + if protoimpl.UnsafeEnabled { + mi := &file_consensus_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WithdrawBidTransaction) XXX_Size() int { - return xxx_messageInfo_WithdrawBidTransaction.Size(m) + +func (x *WithdrawBidTransaction) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WithdrawBidTransaction) XXX_DiscardUnknown() { - xxx_messageInfo_WithdrawBidTransaction.DiscardUnknown(m) + +func (*WithdrawBidTransaction) ProtoMessage() {} + +func (x *WithdrawBidTransaction) ProtoReflect() protoreflect.Message { + mi := &file_consensus_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WithdrawBidTransaction proto.InternalMessageInfo +// Deprecated: Use WithdrawBidTransaction.ProtoReflect.Descriptor instead. +func (*WithdrawBidTransaction) Descriptor() ([]byte, []int) { + return file_consensus_proto_rawDescGZIP(), []int{5} +} -func (m *WithdrawBidTransaction) GetCommitment() []byte { - if m != nil { - return m.Commitment +func (x *WithdrawBidTransaction) GetCommitment() []byte { + if x != nil { + return x.Commitment } return nil } -func (m *WithdrawBidTransaction) GetSig() []byte { - if m != nil { - return m.Sig +func (x *WithdrawBidTransaction) GetSig() []byte { + if x != nil { + return x.Sig } return nil } -func (m *WithdrawBidTransaction) GetEdPk() []byte { - if m != nil { - return m.EdPk +func (x *WithdrawBidTransaction) GetEdPk() []byte { + if x != nil { + return x.EdPk } return nil } -func (m *WithdrawBidTransaction) GetTx() *Transaction { - if m != nil { - return m.Tx +func (x *WithdrawBidTransaction) GetTx() *Transaction { + if x != nil { + return x.Tx } return nil } // WithdrawStakeTransaction is the transaction to withdraw a stake type WithdrawStakeTransaction struct { - BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` - Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` - Tx *Transaction `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WithdrawStakeTransaction) Reset() { *m = WithdrawStakeTransaction{} } -func (m *WithdrawStakeTransaction) String() string { return proto.CompactTextString(m) } -func (*WithdrawStakeTransaction) ProtoMessage() {} -func (*WithdrawStakeTransaction) Descriptor() ([]byte, []int) { - return fileDescriptor_56f0f2c53b3de771, []int{6} -} -func (m *WithdrawStakeTransaction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WithdrawStakeTransaction.Unmarshal(m, b) -} -func (m *WithdrawStakeTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WithdrawStakeTransaction.Marshal(b, m, deterministic) + BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` + Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` + Tx *Transaction `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` } -func (m *WithdrawStakeTransaction) XXX_Merge(src proto.Message) { - xxx_messageInfo_WithdrawStakeTransaction.Merge(m, src) + +func (x *WithdrawStakeTransaction) Reset() { + *x = WithdrawStakeTransaction{} + if protoimpl.UnsafeEnabled { + mi := &file_consensus_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WithdrawStakeTransaction) XXX_Size() int { - return xxx_messageInfo_WithdrawStakeTransaction.Size(m) + +func (x *WithdrawStakeTransaction) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WithdrawStakeTransaction) XXX_DiscardUnknown() { - xxx_messageInfo_WithdrawStakeTransaction.DiscardUnknown(m) + +func (*WithdrawStakeTransaction) ProtoMessage() {} + +func (x *WithdrawStakeTransaction) ProtoReflect() protoreflect.Message { + mi := &file_consensus_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WithdrawStakeTransaction proto.InternalMessageInfo +// Deprecated: Use WithdrawStakeTransaction.ProtoReflect.Descriptor instead. +func (*WithdrawStakeTransaction) Descriptor() ([]byte, []int) { + return file_consensus_proto_rawDescGZIP(), []int{6} +} -func (m *WithdrawStakeTransaction) GetBlsKey() []byte { - if m != nil { - return m.BlsKey +func (x *WithdrawStakeTransaction) GetBlsKey() []byte { + if x != nil { + return x.BlsKey } return nil } -func (m *WithdrawStakeTransaction) GetSig() []byte { - if m != nil { - return m.Sig +func (x *WithdrawStakeTransaction) GetSig() []byte { + if x != nil { + return x.Sig } return nil } -func (m *WithdrawStakeTransaction) GetTx() *Transaction { - if m != nil { - return m.Tx +func (x *WithdrawStakeTransaction) GetTx() *Transaction { + if x != nil { + return x.Tx } return nil } -func init() { - proto.RegisterType((*DistributeTransaction)(nil), "rusk.DistributeTransaction") - proto.RegisterType((*WithdrawFeesTransaction)(nil), "rusk.WithdrawFeesTransaction") - proto.RegisterType((*SlashTransaction)(nil), "rusk.SlashTransaction") - proto.RegisterType((*StakeTransaction)(nil), "rusk.StakeTransaction") - proto.RegisterType((*BidTransaction)(nil), "rusk.BidTransaction") - proto.RegisterType((*WithdrawBidTransaction)(nil), "rusk.WithdrawBidTransaction") - proto.RegisterType((*WithdrawStakeTransaction)(nil), "rusk.WithdrawStakeTransaction") -} - -func init() { proto.RegisterFile("consensus.proto", fileDescriptor_56f0f2c53b3de771) } - -var fileDescriptor_56f0f2c53b3de771 = []byte{ - // 521 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xef, 0x8a, 0xd3, 0x40, - 0x10, 0x67, 0xdb, 0xb4, 0xbd, 0x1b, 0xeb, 0x5d, 0x1b, 0xbd, 0xbb, 0x72, 0xa2, 0xd4, 0xc3, 0x0f, - 0x45, 0xb1, 0x05, 0xc5, 0x07, 0xf0, 0x10, 0x11, 0x0e, 0xe1, 0x48, 0x05, 0xc1, 0x2f, 0x25, 0x7f, - 0xe6, 0x36, 0x4b, 0x9a, 0x6c, 0xd8, 0xd9, 0x68, 0x83, 0xdf, 0x7c, 0x09, 0x5f, 0xc7, 0x47, 0xf2, - 0x11, 0x64, 0x37, 0xa9, 0x8d, 0x56, 0x7b, 0xfd, 0x36, 0x9d, 0xdf, 0x4c, 0x7f, 0xbf, 0xdf, 0xec, - 0x4c, 0xe0, 0x38, 0x94, 0x19, 0x61, 0x46, 0x05, 0x4d, 0x73, 0x25, 0xb5, 0x74, 0x1d, 0x55, 0x50, - 0x72, 0x3e, 0xd4, 0xca, 0xcf, 0xc8, 0x0f, 0xb5, 0x90, 0x59, 0x05, 0x9c, 0x43, 0x82, 0x65, 0x5d, - 0x74, 0xf1, 0x9d, 0xc1, 0xc9, 0x1b, 0x41, 0x5a, 0x89, 0xa0, 0xd0, 0xf8, 0x61, 0x53, 0xeb, 0xbe, - 0x82, 0xd3, 0x5c, 0xc9, 0xcf, 0x82, 0x84, 0xcc, 0x50, 0xd1, 0xc2, 0x8f, 0x22, 0x85, 0x44, 0x48, - 0x23, 0x36, 0x6e, 0x4f, 0xfa, 0xde, 0x49, 0x13, 0x7d, 0xbd, 0x06, 0xdd, 0x27, 0xd0, 0x09, 0xf8, - 0x22, 0x4f, 0x46, 0xad, 0x31, 0x9b, 0xdc, 0x79, 0x71, 0x3c, 0x35, 0x2a, 0xa6, 0xd7, 0x45, 0xb0, - 0x14, 0xe1, 0x15, 0x96, 0x9e, 0x13, 0xf0, 0xeb, 0xc4, 0x7d, 0x0c, 0x2d, 0xbd, 0x1a, 0xb5, 0x6d, - 0xc9, 0xb0, 0x2a, 0x69, 0x70, 0x7b, 0x2d, 0xbd, 0xba, 0x28, 0xe1, 0xec, 0xa3, 0xd0, 0x71, 0xa4, - 0xfc, 0x2f, 0x6f, 0x11, 0xa9, 0x29, 0xed, 0x0c, 0x7a, 0xc1, 0x92, 0x16, 0x09, 0x96, 0x23, 0x36, - 0x66, 0x93, 0xbe, 0xd7, 0x0d, 0x96, 0x74, 0x85, 0xa5, 0x3b, 0x80, 0x36, 0x09, 0x6e, 0xa9, 0xfb, - 0x9e, 0x09, 0x4d, 0x26, 0x25, 0x6e, 0x99, 0xfa, 0x9e, 0x09, 0x6b, 0x6a, 0x67, 0x17, 0xf5, 0x4f, - 0x06, 0x83, 0xf9, 0xd2, 0xa7, 0x78, 0x2f, 0x52, 0x17, 0x1c, 0xd2, 0x98, 0x5b, 0xd6, 0xbb, 0x9e, - 0x8d, 0xdd, 0xfb, 0xd0, 0x51, 0xb2, 0xc8, 0x22, 0x4b, 0xdc, 0xf5, 0xaa, 0x1f, 0xee, 0x03, 0x38, - 0xbc, 0x11, 0x8a, 0xf4, 0xc2, 0x48, 0x72, 0xec, 0x9f, 0x1c, 0xd8, 0xc4, 0x7b, 0xe2, 0x1b, 0xd0, - 0x38, 0xe8, 0x34, 0xc0, 0xb9, 0xe0, 0xee, 0x43, 0x00, 0xc2, 0x50, 0x66, 0x91, 0x6d, 0xed, 0x5a, - 0xf4, 0xb0, 0xca, 0x98, 0xde, 0x0d, 0x6c, 0x9a, 0x7b, 0x4d, 0xd8, 0x74, 0x57, 0x96, 0x0f, 0x76, - 0x59, 0xfe, 0x0a, 0x83, 0xb9, 0xf6, 0x13, 0xdc, 0xcb, 0xf1, 0x33, 0x18, 0xe2, 0x2a, 0x17, 0xca, - 0x37, 0x65, 0x8b, 0x18, 0x05, 0x8f, 0xb5, 0xb5, 0xdf, 0xf5, 0x06, 0x1b, 0xe0, 0x9d, 0xcd, 0xef, - 0x33, 0xef, 0x1f, 0x0c, 0x8e, 0x2e, 0x45, 0xd4, 0xe4, 0xee, 0x03, 0x4b, 0x6b, 0x56, 0x96, 0xba, - 0x8f, 0x00, 0x42, 0x99, 0xa6, 0x42, 0xa7, 0x98, 0xe9, 0xfa, 0x79, 0x1b, 0x99, 0x7f, 0x0b, 0x6a, - 0xff, 0x47, 0xd0, 0x11, 0xb4, 0xf2, 0xa4, 0x1e, 0x7f, 0x2b, 0x4f, 0x0c, 0x95, 0xaa, 0x07, 0xce, - 0x94, 0x7d, 0x4d, 0xc4, 0xa8, 0x9e, 0xb1, 0x8d, 0x6b, 0x0b, 0xbd, 0x5d, 0x16, 0xbe, 0x31, 0x38, - 0x5d, 0xaf, 0xeb, 0x5f, 0x56, 0xfe, 0x14, 0xcf, 0xb6, 0xc4, 0x6f, 0x2f, 0xed, 0x3d, 0xe8, 0x60, - 0x64, 0x6e, 0xa8, 0x5a, 0x5b, 0x07, 0xa3, 0xdf, 0x27, 0xb3, 0x73, 0x8e, 0x31, 0x8c, 0xd6, 0x1a, - 0xf6, 0x7f, 0xcc, 0x6d, 0xfa, 0xdb, 0x8f, 0xf3, 0xf2, 0xe9, 0xa7, 0x09, 0x17, 0x3a, 0x2e, 0x82, - 0x69, 0x28, 0xd3, 0x59, 0x54, 0x50, 0xf2, 0xdc, 0x7e, 0x4f, 0x82, 0xe2, 0x66, 0xe6, 0x17, 0x5a, - 0x72, 0xcc, 0x66, 0x5c, 0xce, 0x4c, 0x6f, 0xd0, 0xb5, 0xc8, 0xcb, 0x5f, 0x01, 0x00, 0x00, 0xff, - 0xff, 0x5b, 0xeb, 0xfe, 0x06, 0xa1, 0x04, 0x00, 0x00, +var File_consensus_proto protoreflect.FileDescriptor + +var file_consensus_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x04, 0x72, 0x75, 0x73, 0x6b, 0x1a, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6b, 0x65, 0x79, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x15, 0x44, 0x69, 0x73, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x35, 0x0a, 0x16, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x73, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, + 0x52, 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x73, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x05, 0x62, 0x67, 0x5f, 0x70, 0x6b, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x04, 0x62, 0x67, 0x50, 0x6b, 0x12, 0x21, 0x0a, + 0x02, 0x74, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x75, 0x73, 0x6b, + 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x74, 0x78, + 0x22, 0x79, 0x0a, 0x17, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x46, 0x65, 0x65, 0x73, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x62, + 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x6c, + 0x73, 0x4b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x21, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x74, 0x78, 0x22, 0xf0, 0x01, 0x0a, 0x10, + 0x53, 0x6c, 0x61, 0x73, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x17, 0x0a, 0x07, 0x62, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x06, 0x62, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x65, + 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x12, 0x14, 0x0a, + 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, 0x05, 0x72, 0x6f, + 0x75, 0x6e, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6d, 0x73, 0x67, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4d, 0x73, 0x67, + 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x08, 0x66, 0x69, 0x72, 0x73, 0x74, 0x53, 0x69, 0x67, 0x12, 0x1d, 0x0a, + 0x0a, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a, + 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x09, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x53, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x02, 0x74, + 0x78, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x74, 0x78, 0x22, 0x7b, + 0x0a, 0x10, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x62, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x11, 0x65, + 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x10, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x21, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x74, 0x78, 0x22, 0xc0, 0x01, 0x0a, 0x0e, + 0x42, 0x69, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0c, + 0x0a, 0x01, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x6d, 0x12, 0x1e, 0x0a, 0x0a, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x11, + 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, 0x10, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x70, 0x6b, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x70, 0x6b, 0x12, 0x0c, 0x0a, 0x01, 0x72, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x02, 0x74, + 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x74, 0x78, 0x22, 0x82, + 0x01, 0x0a, 0x16, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x42, 0x69, 0x64, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, 0x13, 0x0a, 0x05, 0x65, + 0x64, 0x5f, 0x70, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x65, 0x64, 0x50, 0x6b, + 0x12, 0x21, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, + 0x75, 0x73, 0x6b, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x02, 0x74, 0x78, 0x22, 0x68, 0x0a, 0x18, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x53, + 0x74, 0x61, 0x6b, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x17, 0x0a, 0x07, 0x62, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x06, 0x62, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x02, 0x74, 0x78, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x74, 0x78, 0x42, 0x2a, 0x5a, + 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, 0x6b, + 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x67, 0x65, + 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x75, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_consensus_proto_rawDescOnce sync.Once + file_consensus_proto_rawDescData = file_consensus_proto_rawDesc +) + +func file_consensus_proto_rawDescGZIP() []byte { + file_consensus_proto_rawDescOnce.Do(func() { + file_consensus_proto_rawDescData = protoimpl.X.CompressGZIP(file_consensus_proto_rawDescData) + }) + return file_consensus_proto_rawDescData +} + +var file_consensus_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_consensus_proto_goTypes = []interface{}{ + (*DistributeTransaction)(nil), // 0: rusk.DistributeTransaction + (*WithdrawFeesTransaction)(nil), // 1: rusk.WithdrawFeesTransaction + (*SlashTransaction)(nil), // 2: rusk.SlashTransaction + (*StakeTransaction)(nil), // 3: rusk.StakeTransaction + (*BidTransaction)(nil), // 4: rusk.BidTransaction + (*WithdrawBidTransaction)(nil), // 5: rusk.WithdrawBidTransaction + (*WithdrawStakeTransaction)(nil), // 6: rusk.WithdrawStakeTransaction + (*PublicKey)(nil), // 7: rusk.PublicKey + (*Transaction)(nil), // 8: rusk.Transaction +} +var file_consensus_proto_depIdxs = []int32{ + 7, // 0: rusk.DistributeTransaction.bg_pk:type_name -> rusk.PublicKey + 8, // 1: rusk.DistributeTransaction.tx:type_name -> rusk.Transaction + 8, // 2: rusk.WithdrawFeesTransaction.tx:type_name -> rusk.Transaction + 8, // 3: rusk.SlashTransaction.tx:type_name -> rusk.Transaction + 8, // 4: rusk.StakeTransaction.tx:type_name -> rusk.Transaction + 8, // 5: rusk.BidTransaction.tx:type_name -> rusk.Transaction + 8, // 6: rusk.WithdrawBidTransaction.tx:type_name -> rusk.Transaction + 8, // 7: rusk.WithdrawStakeTransaction.tx:type_name -> rusk.Transaction + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_consensus_proto_init() } +func file_consensus_proto_init() { + if File_consensus_proto != nil { + return + } + file_transaction_proto_init() + file_keys_proto_init() + if !protoimpl.UnsafeEnabled { + file_consensus_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DistributeTransaction); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_consensus_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WithdrawFeesTransaction); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_consensus_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SlashTransaction); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_consensus_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StakeTransaction); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_consensus_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BidTransaction); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_consensus_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WithdrawBidTransaction); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_consensus_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WithdrawStakeTransaction); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_consensus_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_consensus_proto_goTypes, + DependencyIndexes: file_consensus_proto_depIdxs, + MessageInfos: file_consensus_proto_msgTypes, + }.Build() + File_consensus_proto = out.File + file_consensus_proto_rawDesc = nil + file_consensus_proto_goTypes = nil + file_consensus_proto_depIdxs = nil } diff --git a/autogen/go/rusk/field.pb.go b/autogen/go/rusk/field.pb.go index 2855e71..97a5608 100644 --- a/autogen/go/rusk/field.pb.go +++ b/autogen/go/rusk/field.pb.go @@ -1,158 +1,271 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.21.0 +// protoc v3.11.4 // source: field.proto package rusk import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - math "math" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type Scalar struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Scalar) Reset() { *m = Scalar{} } -func (m *Scalar) String() string { return proto.CompactTextString(m) } -func (*Scalar) ProtoMessage() {} -func (*Scalar) Descriptor() ([]byte, []int) { - return fileDescriptor_04234ff7fdd53e6e, []int{0} + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } -func (m *Scalar) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Scalar.Unmarshal(m, b) -} -func (m *Scalar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Scalar.Marshal(b, m, deterministic) -} -func (m *Scalar) XXX_Merge(src proto.Message) { - xxx_messageInfo_Scalar.Merge(m, src) + +func (x *Scalar) Reset() { + *x = Scalar{} + if protoimpl.UnsafeEnabled { + mi := &file_field_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Scalar) XXX_Size() int { - return xxx_messageInfo_Scalar.Size(m) + +func (x *Scalar) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Scalar) XXX_DiscardUnknown() { - xxx_messageInfo_Scalar.DiscardUnknown(m) + +func (*Scalar) ProtoMessage() {} + +func (x *Scalar) ProtoReflect() protoreflect.Message { + mi := &file_field_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Scalar proto.InternalMessageInfo +// Deprecated: Use Scalar.ProtoReflect.Descriptor instead. +func (*Scalar) Descriptor() ([]byte, []int) { + return file_field_proto_rawDescGZIP(), []int{0} +} -func (m *Scalar) GetData() []byte { - if m != nil { - return m.Data +func (x *Scalar) GetData() []byte { + if x != nil { + return x.Data } return nil } type CompressedPoint struct { - Y []byte `protobuf:"bytes,1,opt,name=y,proto3" json:"y,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CompressedPoint) Reset() { *m = CompressedPoint{} } -func (m *CompressedPoint) String() string { return proto.CompactTextString(m) } -func (*CompressedPoint) ProtoMessage() {} -func (*CompressedPoint) Descriptor() ([]byte, []int) { - return fileDescriptor_04234ff7fdd53e6e, []int{1} + Y []byte `protobuf:"bytes,1,opt,name=y,proto3" json:"y,omitempty"` } -func (m *CompressedPoint) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CompressedPoint.Unmarshal(m, b) -} -func (m *CompressedPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CompressedPoint.Marshal(b, m, deterministic) -} -func (m *CompressedPoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompressedPoint.Merge(m, src) + +func (x *CompressedPoint) Reset() { + *x = CompressedPoint{} + if protoimpl.UnsafeEnabled { + mi := &file_field_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CompressedPoint) XXX_Size() int { - return xxx_messageInfo_CompressedPoint.Size(m) + +func (x *CompressedPoint) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CompressedPoint) XXX_DiscardUnknown() { - xxx_messageInfo_CompressedPoint.DiscardUnknown(m) + +func (*CompressedPoint) ProtoMessage() {} + +func (x *CompressedPoint) ProtoReflect() protoreflect.Message { + mi := &file_field_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CompressedPoint proto.InternalMessageInfo +// Deprecated: Use CompressedPoint.ProtoReflect.Descriptor instead. +func (*CompressedPoint) Descriptor() ([]byte, []int) { + return file_field_proto_rawDescGZIP(), []int{1} +} -func (m *CompressedPoint) GetY() []byte { - if m != nil { - return m.Y +func (x *CompressedPoint) GetY() []byte { + if x != nil { + return x.Y } return nil } type Nonce struct { - Bs []byte `protobuf:"bytes,1,opt,name=bs,proto3" json:"bs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Nonce) Reset() { *m = Nonce{} } -func (m *Nonce) String() string { return proto.CompactTextString(m) } -func (*Nonce) ProtoMessage() {} -func (*Nonce) Descriptor() ([]byte, []int) { - return fileDescriptor_04234ff7fdd53e6e, []int{2} -} -func (m *Nonce) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Nonce.Unmarshal(m, b) -} -func (m *Nonce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Nonce.Marshal(b, m, deterministic) + Bs []byte `protobuf:"bytes,1,opt,name=bs,proto3" json:"bs,omitempty"` } -func (m *Nonce) XXX_Merge(src proto.Message) { - xxx_messageInfo_Nonce.Merge(m, src) + +func (x *Nonce) Reset() { + *x = Nonce{} + if protoimpl.UnsafeEnabled { + mi := &file_field_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Nonce) XXX_Size() int { - return xxx_messageInfo_Nonce.Size(m) + +func (x *Nonce) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Nonce) XXX_DiscardUnknown() { - xxx_messageInfo_Nonce.DiscardUnknown(m) + +func (*Nonce) ProtoMessage() {} + +func (x *Nonce) ProtoReflect() protoreflect.Message { + mi := &file_field_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Nonce proto.InternalMessageInfo +// Deprecated: Use Nonce.ProtoReflect.Descriptor instead. +func (*Nonce) Descriptor() ([]byte, []int) { + return file_field_proto_rawDescGZIP(), []int{2} +} -func (m *Nonce) GetBs() []byte { - if m != nil { - return m.Bs +func (x *Nonce) GetBs() []byte { + if x != nil { + return x.Bs } return nil } -func init() { - proto.RegisterType((*Scalar)(nil), "rusk.Scalar") - proto.RegisterType((*CompressedPoint)(nil), "rusk.CompressedPoint") - proto.RegisterType((*Nonce)(nil), "rusk.Nonce") +var File_field_proto protoreflect.FileDescriptor + +var file_field_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x72, + 0x75, 0x73, 0x6b, 0x22, 0x1c, 0x0a, 0x06, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x12, 0x12, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x22, 0x1f, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x50, + 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x01, 0x79, 0x22, 0x17, 0x0a, 0x05, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x62, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x62, 0x73, 0x42, 0x2a, 0x5a, 0x28, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, 0x6b, 0x2d, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x67, 0x65, 0x6e, 0x2f, + 0x67, 0x6f, 0x2f, 0x72, 0x75, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("field.proto", fileDescriptor_04234ff7fdd53e6e) } +var ( + file_field_proto_rawDescOnce sync.Once + file_field_proto_rawDescData = file_field_proto_rawDesc +) + +func file_field_proto_rawDescGZIP() []byte { + file_field_proto_rawDescOnce.Do(func() { + file_field_proto_rawDescData = protoimpl.X.CompressGZIP(file_field_proto_rawDescData) + }) + return file_field_proto_rawDescData +} -var fileDescriptor_04234ff7fdd53e6e = []byte{ - // 162 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4e, 0xcb, 0x4c, 0xcd, - 0x49, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x29, 0x2a, 0x2d, 0xce, 0x56, 0x92, 0xe1, - 0x62, 0x0b, 0x4e, 0x4e, 0xcc, 0x49, 0x2c, 0x12, 0x12, 0xe2, 0x62, 0x49, 0x49, 0x2c, 0x49, 0x94, - 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x09, 0x02, 0xb3, 0x95, 0xe4, 0xb9, 0xf8, 0x9d, 0xf3, 0x73, 0x0b, - 0x8a, 0x52, 0x8b, 0x8b, 0x53, 0x53, 0x02, 0xf2, 0x33, 0xf3, 0x4a, 0x84, 0x78, 0xb8, 0x18, 0x2b, - 0xa1, 0x6a, 0x18, 0x2b, 0x95, 0xc4, 0xb9, 0x58, 0xfd, 0xf2, 0xf3, 0x92, 0x53, 0x85, 0xf8, 0xb8, - 0x98, 0x92, 0x8a, 0xa1, 0xe2, 0x4c, 0x49, 0xc5, 0x4e, 0x5a, 0x51, 0x1a, 0xe9, 0x99, 0x25, 0x19, - 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x29, 0xa5, 0xc5, 0xd9, 0xba, 0x60, 0x6b, 0x93, 0x4a, - 0xd3, 0xf4, 0x13, 0x4b, 0x4b, 0xf2, 0xd3, 0x53, 0xf3, 0xf4, 0xd3, 0xf3, 0xf5, 0x41, 0x6e, 0x48, - 0x62, 0x03, 0xcb, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xcc, 0x9b, 0x93, 0x9f, 0x00, - 0x00, 0x00, +var file_field_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_field_proto_goTypes = []interface{}{ + (*Scalar)(nil), // 0: rusk.Scalar + (*CompressedPoint)(nil), // 1: rusk.CompressedPoint + (*Nonce)(nil), // 2: rusk.Nonce +} +var file_field_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_field_proto_init() } +func file_field_proto_init() { + if File_field_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_field_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Scalar); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_field_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CompressedPoint); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_field_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Nonce); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_field_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_field_proto_goTypes, + DependencyIndexes: file_field_proto_depIdxs, + MessageInfos: file_field_proto_msgTypes, + }.Build() + File_field_proto = out.File + file_field_proto_rawDesc = nil + file_field_proto_goTypes = nil + file_field_proto_depIdxs = nil } diff --git a/autogen/go/rusk/keys.pb.go b/autogen/go/rusk/keys.pb.go index c84f29a..51af83a 100644 --- a/autogen/go/rusk/keys.pb.go +++ b/autogen/go/rusk/keys.pb.go @@ -1,185 +1,315 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.21.0 +// protoc v3.11.4 // source: keys.proto package rusk import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - math "math" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type SecretKey struct { - A *Scalar `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` - B *Scalar `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SecretKey) Reset() { *m = SecretKey{} } -func (m *SecretKey) String() string { return proto.CompactTextString(m) } -func (*SecretKey) ProtoMessage() {} -func (*SecretKey) Descriptor() ([]byte, []int) { - return fileDescriptor_9084e97af2346a26, []int{0} -} -func (m *SecretKey) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecretKey.Unmarshal(m, b) + A *Scalar `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` + B *Scalar `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"` } -func (m *SecretKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecretKey.Marshal(b, m, deterministic) -} -func (m *SecretKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecretKey.Merge(m, src) + +func (x *SecretKey) Reset() { + *x = SecretKey{} + if protoimpl.UnsafeEnabled { + mi := &file_keys_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SecretKey) XXX_Size() int { - return xxx_messageInfo_SecretKey.Size(m) + +func (x *SecretKey) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SecretKey) XXX_DiscardUnknown() { - xxx_messageInfo_SecretKey.DiscardUnknown(m) + +func (*SecretKey) ProtoMessage() {} + +func (x *SecretKey) ProtoReflect() protoreflect.Message { + mi := &file_keys_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SecretKey proto.InternalMessageInfo +// Deprecated: Use SecretKey.ProtoReflect.Descriptor instead. +func (*SecretKey) Descriptor() ([]byte, []int) { + return file_keys_proto_rawDescGZIP(), []int{0} +} -func (m *SecretKey) GetA() *Scalar { - if m != nil { - return m.A +func (x *SecretKey) GetA() *Scalar { + if x != nil { + return x.A } return nil } -func (m *SecretKey) GetB() *Scalar { - if m != nil { - return m.B +func (x *SecretKey) GetB() *Scalar { + if x != nil { + return x.B } return nil } type ViewKey struct { - A *Scalar `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` - BG *CompressedPoint `protobuf:"bytes,2,opt,name=b_g,json=bG,proto3" json:"b_g,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ViewKey) Reset() { *m = ViewKey{} } -func (m *ViewKey) String() string { return proto.CompactTextString(m) } -func (*ViewKey) ProtoMessage() {} -func (*ViewKey) Descriptor() ([]byte, []int) { - return fileDescriptor_9084e97af2346a26, []int{1} -} -func (m *ViewKey) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ViewKey.Unmarshal(m, b) + A *Scalar `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` + BG *CompressedPoint `protobuf:"bytes,2,opt,name=b_g,json=bG,proto3" json:"b_g,omitempty"` } -func (m *ViewKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ViewKey.Marshal(b, m, deterministic) -} -func (m *ViewKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_ViewKey.Merge(m, src) + +func (x *ViewKey) Reset() { + *x = ViewKey{} + if protoimpl.UnsafeEnabled { + mi := &file_keys_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ViewKey) XXX_Size() int { - return xxx_messageInfo_ViewKey.Size(m) + +func (x *ViewKey) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ViewKey) XXX_DiscardUnknown() { - xxx_messageInfo_ViewKey.DiscardUnknown(m) + +func (*ViewKey) ProtoMessage() {} + +func (x *ViewKey) ProtoReflect() protoreflect.Message { + mi := &file_keys_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ViewKey proto.InternalMessageInfo +// Deprecated: Use ViewKey.ProtoReflect.Descriptor instead. +func (*ViewKey) Descriptor() ([]byte, []int) { + return file_keys_proto_rawDescGZIP(), []int{1} +} -func (m *ViewKey) GetA() *Scalar { - if m != nil { - return m.A +func (x *ViewKey) GetA() *Scalar { + if x != nil { + return x.A } return nil } -func (m *ViewKey) GetBG() *CompressedPoint { - if m != nil { - return m.BG +func (x *ViewKey) GetBG() *CompressedPoint { + if x != nil { + return x.BG } return nil } type PublicKey struct { - AG *CompressedPoint `protobuf:"bytes,1,opt,name=a_g,json=aG,proto3" json:"a_g,omitempty"` - BG *CompressedPoint `protobuf:"bytes,2,opt,name=b_g,json=bG,proto3" json:"b_g,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PublicKey) Reset() { *m = PublicKey{} } -func (m *PublicKey) String() string { return proto.CompactTextString(m) } -func (*PublicKey) ProtoMessage() {} -func (*PublicKey) Descriptor() ([]byte, []int) { - return fileDescriptor_9084e97af2346a26, []int{2} -} -func (m *PublicKey) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PublicKey.Unmarshal(m, b) + AG *CompressedPoint `protobuf:"bytes,1,opt,name=a_g,json=aG,proto3" json:"a_g,omitempty"` + BG *CompressedPoint `protobuf:"bytes,2,opt,name=b_g,json=bG,proto3" json:"b_g,omitempty"` } -func (m *PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PublicKey.Marshal(b, m, deterministic) -} -func (m *PublicKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_PublicKey.Merge(m, src) + +func (x *PublicKey) Reset() { + *x = PublicKey{} + if protoimpl.UnsafeEnabled { + mi := &file_keys_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PublicKey) XXX_Size() int { - return xxx_messageInfo_PublicKey.Size(m) + +func (x *PublicKey) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PublicKey) XXX_DiscardUnknown() { - xxx_messageInfo_PublicKey.DiscardUnknown(m) + +func (*PublicKey) ProtoMessage() {} + +func (x *PublicKey) ProtoReflect() protoreflect.Message { + mi := &file_keys_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PublicKey proto.InternalMessageInfo +// Deprecated: Use PublicKey.ProtoReflect.Descriptor instead. +func (*PublicKey) Descriptor() ([]byte, []int) { + return file_keys_proto_rawDescGZIP(), []int{2} +} -func (m *PublicKey) GetAG() *CompressedPoint { - if m != nil { - return m.AG +func (x *PublicKey) GetAG() *CompressedPoint { + if x != nil { + return x.AG } return nil } -func (m *PublicKey) GetBG() *CompressedPoint { - if m != nil { - return m.BG +func (x *PublicKey) GetBG() *CompressedPoint { + if x != nil { + return x.BG } return nil } -func init() { - proto.RegisterType((*SecretKey)(nil), "rusk.SecretKey") - proto.RegisterType((*ViewKey)(nil), "rusk.ViewKey") - proto.RegisterType((*PublicKey)(nil), "rusk.PublicKey") -} - -func init() { proto.RegisterFile("keys.proto", fileDescriptor_9084e97af2346a26) } - -var fileDescriptor_9084e97af2346a26 = []byte{ - // 210 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xca, 0x4e, 0xad, 0x2c, - 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x29, 0x2a, 0x2d, 0xce, 0x96, 0xe2, 0x4e, 0xcb, - 0x4c, 0xcd, 0x49, 0x81, 0x08, 0x29, 0x39, 0x73, 0x71, 0x06, 0xa7, 0x26, 0x17, 0xa5, 0x96, 0x78, - 0xa7, 0x56, 0x0a, 0x49, 0x71, 0x31, 0x26, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0xf1, 0xe8, - 0x81, 0xd4, 0xea, 0x05, 0x27, 0x27, 0xe6, 0x24, 0x16, 0x05, 0x31, 0x26, 0x82, 0xe4, 0x92, 0x24, - 0x98, 0xb0, 0xc9, 0x25, 0x29, 0xf9, 0x72, 0xb1, 0x87, 0x65, 0xa6, 0x96, 0x13, 0x32, 0x42, 0x8d, - 0x8b, 0x39, 0x29, 0x3e, 0x1d, 0x6a, 0x88, 0x28, 0x44, 0xd6, 0x39, 0x3f, 0xb7, 0xa0, 0x28, 0xb5, - 0xb8, 0x38, 0x35, 0x25, 0x20, 0x3f, 0x33, 0xaf, 0x24, 0x88, 0x29, 0xc9, 0x5d, 0x29, 0x9a, 0x8b, - 0x33, 0xa0, 0x34, 0x29, 0x27, 0x33, 0x19, 0x64, 0xa0, 0x1a, 0x17, 0x73, 0x62, 0x7c, 0x3a, 0xd4, - 0x48, 0x5c, 0x9a, 0x12, 0xdd, 0x89, 0x35, 0xdc, 0x49, 0x2b, 0x4a, 0x23, 0x3d, 0xb3, 0x24, 0xa3, - 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0xa5, 0xb4, 0x38, 0x5b, 0x17, 0x1c, 0x12, 0x49, 0xa5, - 0x69, 0xfa, 0x89, 0xa5, 0x25, 0xf9, 0xe9, 0xa9, 0x79, 0xfa, 0xe9, 0xf9, 0xfa, 0x20, 0xfd, 0x49, - 0x6c, 0x60, 0x19, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x96, 0x3d, 0x88, 0x25, 0x44, 0x01, - 0x00, 0x00, +var File_keys_proto protoreflect.FileDescriptor + +var file_keys_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x72, 0x75, + 0x73, 0x6b, 0x1a, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x43, 0x0a, 0x09, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x01, + 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, + 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x01, 0x61, 0x12, 0x1a, 0x0a, 0x01, 0x62, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x61, + 0x72, 0x52, 0x01, 0x62, 0x22, 0x4d, 0x0a, 0x07, 0x56, 0x69, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x12, + 0x1a, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x72, 0x75, 0x73, + 0x6b, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x01, 0x61, 0x12, 0x26, 0x0a, 0x03, 0x62, + 0x5f, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, + 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, + 0x02, 0x62, 0x47, 0x22, 0x5b, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, + 0x12, 0x26, 0x0a, 0x03, 0x61, 0x5f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x50, + 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x02, 0x61, 0x47, 0x12, 0x26, 0x0a, 0x03, 0x62, 0x5f, 0x67, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x43, 0x6f, 0x6d, + 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x02, 0x62, 0x47, + 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, + 0x75, 0x73, 0x6b, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x75, 0x74, + 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x75, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_keys_proto_rawDescOnce sync.Once + file_keys_proto_rawDescData = file_keys_proto_rawDesc +) + +func file_keys_proto_rawDescGZIP() []byte { + file_keys_proto_rawDescOnce.Do(func() { + file_keys_proto_rawDescData = protoimpl.X.CompressGZIP(file_keys_proto_rawDescData) + }) + return file_keys_proto_rawDescData +} + +var file_keys_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_keys_proto_goTypes = []interface{}{ + (*SecretKey)(nil), // 0: rusk.SecretKey + (*ViewKey)(nil), // 1: rusk.ViewKey + (*PublicKey)(nil), // 2: rusk.PublicKey + (*Scalar)(nil), // 3: rusk.Scalar + (*CompressedPoint)(nil), // 4: rusk.CompressedPoint +} +var file_keys_proto_depIdxs = []int32{ + 3, // 0: rusk.SecretKey.a:type_name -> rusk.Scalar + 3, // 1: rusk.SecretKey.b:type_name -> rusk.Scalar + 3, // 2: rusk.ViewKey.a:type_name -> rusk.Scalar + 4, // 3: rusk.ViewKey.b_g:type_name -> rusk.CompressedPoint + 4, // 4: rusk.PublicKey.a_g:type_name -> rusk.CompressedPoint + 4, // 5: rusk.PublicKey.b_g:type_name -> rusk.CompressedPoint + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_keys_proto_init() } +func file_keys_proto_init() { + if File_keys_proto != nil { + return + } + file_field_proto_init() + if !protoimpl.UnsafeEnabled { + file_keys_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SecretKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_keys_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ViewKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_keys_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PublicKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_keys_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_keys_proto_goTypes, + DependencyIndexes: file_keys_proto_depIdxs, + MessageInfos: file_keys_proto_msgTypes, + }.Build() + File_keys_proto = out.File + file_keys_proto_rawDesc = nil + file_keys_proto_goTypes = nil + file_keys_proto_depIdxs = nil } diff --git a/autogen/go/rusk/note.pb.go b/autogen/go/rusk/note.pb.go index a2f2392..e1d5f34 100644 --- a/autogen/go/rusk/note.pb.go +++ b/autogen/go/rusk/note.pb.go @@ -1,24 +1,29 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.21.0 +// protoc v3.11.4 // source: note.proto package rusk import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - math "math" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type NoteType int32 @@ -27,225 +32,266 @@ const ( NoteType_OBFUSCATED NoteType = 1 ) -var NoteType_name = map[int32]string{ - 0: "TRANSPARENT", - 1: "OBFUSCATED", -} +// Enum value maps for NoteType. +var ( + NoteType_name = map[int32]string{ + 0: "TRANSPARENT", + 1: "OBFUSCATED", + } + NoteType_value = map[string]int32{ + "TRANSPARENT": 0, + "OBFUSCATED": 1, + } +) -var NoteType_value = map[string]int32{ - "TRANSPARENT": 0, - "OBFUSCATED": 1, +func (x NoteType) Enum() *NoteType { + p := new(NoteType) + *p = x + return p } func (x NoteType) String() string { - return proto.EnumName(NoteType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (NoteType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_640dafe07df50d4e, []int{0} +func (NoteType) Descriptor() protoreflect.EnumDescriptor { + return file_note_proto_enumTypes[0].Descriptor() } -type Nullifier struct { - H *Scalar `protobuf:"bytes,1,opt,name=h,proto3" json:"h,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (NoteType) Type() protoreflect.EnumType { + return &file_note_proto_enumTypes[0] } -func (m *Nullifier) Reset() { *m = Nullifier{} } -func (m *Nullifier) String() string { return proto.CompactTextString(m) } -func (*Nullifier) ProtoMessage() {} -func (*Nullifier) Descriptor() ([]byte, []int) { - return fileDescriptor_640dafe07df50d4e, []int{0} +func (x NoteType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *Nullifier) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Nullifier.Unmarshal(m, b) + +// Deprecated: Use NoteType.Descriptor instead. +func (NoteType) EnumDescriptor() ([]byte, []int) { + return file_note_proto_rawDescGZIP(), []int{0} } -func (m *Nullifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Nullifier.Marshal(b, m, deterministic) + +type Nullifier struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + H *Scalar `protobuf:"bytes,1,opt,name=h,proto3" json:"h,omitempty"` } -func (m *Nullifier) XXX_Merge(src proto.Message) { - xxx_messageInfo_Nullifier.Merge(m, src) + +func (x *Nullifier) Reset() { + *x = Nullifier{} + if protoimpl.UnsafeEnabled { + mi := &file_note_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Nullifier) XXX_Size() int { - return xxx_messageInfo_Nullifier.Size(m) + +func (x *Nullifier) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Nullifier) XXX_DiscardUnknown() { - xxx_messageInfo_Nullifier.DiscardUnknown(m) + +func (*Nullifier) ProtoMessage() {} + +func (x *Nullifier) ProtoReflect() protoreflect.Message { + mi := &file_note_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Nullifier proto.InternalMessageInfo +// Deprecated: Use Nullifier.ProtoReflect.Descriptor instead. +func (*Nullifier) Descriptor() ([]byte, []int) { + return file_note_proto_rawDescGZIP(), []int{0} +} -func (m *Nullifier) GetH() *Scalar { - if m != nil { - return m.H +func (x *Nullifier) GetH() *Scalar { + if x != nil { + return x.H } return nil } type Note struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + NoteType NoteType `protobuf:"varint,1,opt,name=note_type,json=noteType,proto3,enum=rusk.NoteType" json:"note_type,omitempty"` Pos uint64 `protobuf:"fixed64,2,opt,name=pos,proto3" json:"pos,omitempty"` Nonce *Nonce `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` RG *CompressedPoint `protobuf:"bytes,4,opt,name=r_g,json=rG,proto3" json:"r_g,omitempty"` PkR *CompressedPoint `protobuf:"bytes,5,opt,name=pk_r,json=pkR,proto3" json:"pk_r,omitempty"` ValueCommitment *Scalar `protobuf:"bytes,6,opt,name=value_commitment,json=valueCommitment,proto3" json:"value_commitment,omitempty"` - // Types that are valid to be assigned to BlindingFactor: + // Types that are assignable to BlindingFactor: // *Note_TransparentBlindingFactor // *Note_EncryptedBlindingFactor BlindingFactor isNote_BlindingFactor `protobuf_oneof:"blinding_factor"` - // Types that are valid to be assigned to Value: + // Types that are assignable to Value: // *Note_TransparentValue // *Note_EncryptedValue - Value isNote_Value `protobuf_oneof:"value"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Value isNote_Value `protobuf_oneof:"value"` } -func (m *Note) Reset() { *m = Note{} } -func (m *Note) String() string { return proto.CompactTextString(m) } -func (*Note) ProtoMessage() {} -func (*Note) Descriptor() ([]byte, []int) { - return fileDescriptor_640dafe07df50d4e, []int{1} -} -func (m *Note) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Note.Unmarshal(m, b) -} -func (m *Note) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Note.Marshal(b, m, deterministic) -} -func (m *Note) XXX_Merge(src proto.Message) { - xxx_messageInfo_Note.Merge(m, src) -} -func (m *Note) XXX_Size() int { - return xxx_messageInfo_Note.Size(m) -} -func (m *Note) XXX_DiscardUnknown() { - xxx_messageInfo_Note.DiscardUnknown(m) -} - -var xxx_messageInfo_Note proto.InternalMessageInfo - -type isNote_BlindingFactor interface { - isNote_BlindingFactor() -} -type isNote_Value interface { - isNote_Value() +func (x *Note) Reset() { + *x = Note{} + if protoimpl.UnsafeEnabled { + mi := &file_note_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type Note_TransparentBlindingFactor struct { - TransparentBlindingFactor *Scalar `protobuf:"bytes,7,opt,name=transparent_blinding_factor,json=transparentBlindingFactor,proto3,oneof" json:"transparent_blinding_factor,omitempty"` -} -type Note_EncryptedBlindingFactor struct { - EncryptedBlindingFactor []byte `protobuf:"bytes,8,opt,name=encrypted_blinding_factor,json=encryptedBlindingFactor,proto3,oneof" json:"encrypted_blinding_factor,omitempty"` -} -type Note_TransparentValue struct { - TransparentValue uint64 `protobuf:"fixed64,9,opt,name=transparent_value,json=transparentValue,proto3,oneof" json:"transparent_value,omitempty"` -} -type Note_EncryptedValue struct { - EncryptedValue []byte `protobuf:"bytes,10,opt,name=encrypted_value,json=encryptedValue,proto3,oneof" json:"encrypted_value,omitempty"` +func (x *Note) String() string { + return protoimpl.X.MessageStringOf(x) } -func (*Note_TransparentBlindingFactor) isNote_BlindingFactor() {} -func (*Note_EncryptedBlindingFactor) isNote_BlindingFactor() {} -func (*Note_TransparentValue) isNote_Value() {} -func (*Note_EncryptedValue) isNote_Value() {} +func (*Note) ProtoMessage() {} -func (m *Note) GetBlindingFactor() isNote_BlindingFactor { - if m != nil { - return m.BlindingFactor +func (x *Note) ProtoReflect() protoreflect.Message { + mi := &file_note_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *Note) GetValue() isNote_Value { - if m != nil { - return m.Value - } - return nil + +// Deprecated: Use Note.ProtoReflect.Descriptor instead. +func (*Note) Descriptor() ([]byte, []int) { + return file_note_proto_rawDescGZIP(), []int{1} } -func (m *Note) GetNoteType() NoteType { - if m != nil { - return m.NoteType +func (x *Note) GetNoteType() NoteType { + if x != nil { + return x.NoteType } return NoteType_TRANSPARENT } -func (m *Note) GetPos() uint64 { - if m != nil { - return m.Pos +func (x *Note) GetPos() uint64 { + if x != nil { + return x.Pos } return 0 } -func (m *Note) GetNonce() *Nonce { - if m != nil { - return m.Nonce +func (x *Note) GetNonce() *Nonce { + if x != nil { + return x.Nonce } return nil } -func (m *Note) GetRG() *CompressedPoint { - if m != nil { - return m.RG +func (x *Note) GetRG() *CompressedPoint { + if x != nil { + return x.RG } return nil } -func (m *Note) GetPkR() *CompressedPoint { - if m != nil { - return m.PkR +func (x *Note) GetPkR() *CompressedPoint { + if x != nil { + return x.PkR + } + return nil +} + +func (x *Note) GetValueCommitment() *Scalar { + if x != nil { + return x.ValueCommitment } return nil } -func (m *Note) GetValueCommitment() *Scalar { +func (m *Note) GetBlindingFactor() isNote_BlindingFactor { if m != nil { - return m.ValueCommitment + return m.BlindingFactor } return nil } -func (m *Note) GetTransparentBlindingFactor() *Scalar { - if x, ok := m.GetBlindingFactor().(*Note_TransparentBlindingFactor); ok { +func (x *Note) GetTransparentBlindingFactor() *Scalar { + if x, ok := x.GetBlindingFactor().(*Note_TransparentBlindingFactor); ok { return x.TransparentBlindingFactor } return nil } -func (m *Note) GetEncryptedBlindingFactor() []byte { - if x, ok := m.GetBlindingFactor().(*Note_EncryptedBlindingFactor); ok { +func (x *Note) GetEncryptedBlindingFactor() []byte { + if x, ok := x.GetBlindingFactor().(*Note_EncryptedBlindingFactor); ok { return x.EncryptedBlindingFactor } return nil } -func (m *Note) GetTransparentValue() uint64 { - if x, ok := m.GetValue().(*Note_TransparentValue); ok { +func (m *Note) GetValue() isNote_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *Note) GetTransparentValue() uint64 { + if x, ok := x.GetValue().(*Note_TransparentValue); ok { return x.TransparentValue } return 0 } -func (m *Note) GetEncryptedValue() []byte { - if x, ok := m.GetValue().(*Note_EncryptedValue); ok { +func (x *Note) GetEncryptedValue() []byte { + if x, ok := x.GetValue().(*Note_EncryptedValue); ok { return x.EncryptedValue } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Note) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Note_TransparentBlindingFactor)(nil), - (*Note_EncryptedBlindingFactor)(nil), - (*Note_TransparentValue)(nil), - (*Note_EncryptedValue)(nil), - } +type isNote_BlindingFactor interface { + isNote_BlindingFactor() +} + +type Note_TransparentBlindingFactor struct { + TransparentBlindingFactor *Scalar `protobuf:"bytes,7,opt,name=transparent_blinding_factor,json=transparentBlindingFactor,proto3,oneof"` +} + +type Note_EncryptedBlindingFactor struct { + EncryptedBlindingFactor []byte `protobuf:"bytes,8,opt,name=encrypted_blinding_factor,json=encryptedBlindingFactor,proto3,oneof"` +} + +func (*Note_TransparentBlindingFactor) isNote_BlindingFactor() {} + +func (*Note_EncryptedBlindingFactor) isNote_BlindingFactor() {} + +type isNote_Value interface { + isNote_Value() } +type Note_TransparentValue struct { + TransparentValue uint64 `protobuf:"fixed64,9,opt,name=transparent_value,json=transparentValue,proto3,oneof"` +} + +type Note_EncryptedValue struct { + EncryptedValue []byte `protobuf:"bytes,10,opt,name=encrypted_value,json=encryptedValue,proto3,oneof"` +} + +func (*Note_TransparentValue) isNote_Value() {} + +func (*Note_EncryptedValue) isNote_Value() {} + type DecryptedNote struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + NoteType NoteType `protobuf:"varint,1,opt,name=note_type,json=noteType,proto3,enum=rusk.NoteType" json:"note_type,omitempty"` Pos uint64 `protobuf:"fixed64,2,opt,name=pos,proto3" json:"pos,omitempty"` Value uint64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` @@ -254,216 +300,381 @@ type DecryptedNote struct { PkR *CompressedPoint `protobuf:"bytes,6,opt,name=pk_r,json=pkR,proto3" json:"pk_r,omitempty"` ValueCommitment *Scalar `protobuf:"bytes,7,opt,name=value_commitment,json=valueCommitment,proto3" json:"value_commitment,omitempty"` BlindingFactor *Scalar `protobuf:"bytes,8,opt,name=blinding_factor,json=blindingFactor,proto3" json:"blinding_factor,omitempty"` - // Types that are valid to be assigned to RawBlindingFactor: + // Types that are assignable to RawBlindingFactor: // *DecryptedNote_TransparentBlindingFactor // *DecryptedNote_EncryptedBlindingFactor RawBlindingFactor isDecryptedNote_RawBlindingFactor `protobuf_oneof:"rawBlindingFactor"` - // Types that are valid to be assigned to RawValue: + // Types that are assignable to RawValue: // *DecryptedNote_TransparentValue // *DecryptedNote_EncryptedValue - RawValue isDecryptedNote_RawValue `protobuf_oneof:"rawValue"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DecryptedNote) Reset() { *m = DecryptedNote{} } -func (m *DecryptedNote) String() string { return proto.CompactTextString(m) } -func (*DecryptedNote) ProtoMessage() {} -func (*DecryptedNote) Descriptor() ([]byte, []int) { - return fileDescriptor_640dafe07df50d4e, []int{2} -} -func (m *DecryptedNote) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DecryptedNote.Unmarshal(m, b) + RawValue isDecryptedNote_RawValue `protobuf_oneof:"rawValue"` } -func (m *DecryptedNote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DecryptedNote.Marshal(b, m, deterministic) -} -func (m *DecryptedNote) XXX_Merge(src proto.Message) { - xxx_messageInfo_DecryptedNote.Merge(m, src) -} -func (m *DecryptedNote) XXX_Size() int { - return xxx_messageInfo_DecryptedNote.Size(m) -} -func (m *DecryptedNote) XXX_DiscardUnknown() { - xxx_messageInfo_DecryptedNote.DiscardUnknown(m) -} - -var xxx_messageInfo_DecryptedNote proto.InternalMessageInfo -type isDecryptedNote_RawBlindingFactor interface { - isDecryptedNote_RawBlindingFactor() -} -type isDecryptedNote_RawValue interface { - isDecryptedNote_RawValue() +func (x *DecryptedNote) Reset() { + *x = DecryptedNote{} + if protoimpl.UnsafeEnabled { + mi := &file_note_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type DecryptedNote_TransparentBlindingFactor struct { - TransparentBlindingFactor *Scalar `protobuf:"bytes,9,opt,name=transparent_blinding_factor,json=transparentBlindingFactor,proto3,oneof" json:"transparent_blinding_factor,omitempty"` -} -type DecryptedNote_EncryptedBlindingFactor struct { - EncryptedBlindingFactor []byte `protobuf:"bytes,10,opt,name=encrypted_blinding_factor,json=encryptedBlindingFactor,proto3,oneof" json:"encrypted_blinding_factor,omitempty"` -} -type DecryptedNote_TransparentValue struct { - TransparentValue uint64 `protobuf:"fixed64,11,opt,name=transparent_value,json=transparentValue,proto3,oneof" json:"transparent_value,omitempty"` -} -type DecryptedNote_EncryptedValue struct { - EncryptedValue []byte `protobuf:"bytes,12,opt,name=encrypted_value,json=encryptedValue,proto3,oneof" json:"encrypted_value,omitempty"` +func (x *DecryptedNote) String() string { + return protoimpl.X.MessageStringOf(x) } -func (*DecryptedNote_TransparentBlindingFactor) isDecryptedNote_RawBlindingFactor() {} -func (*DecryptedNote_EncryptedBlindingFactor) isDecryptedNote_RawBlindingFactor() {} -func (*DecryptedNote_TransparentValue) isDecryptedNote_RawValue() {} -func (*DecryptedNote_EncryptedValue) isDecryptedNote_RawValue() {} +func (*DecryptedNote) ProtoMessage() {} -func (m *DecryptedNote) GetRawBlindingFactor() isDecryptedNote_RawBlindingFactor { - if m != nil { - return m.RawBlindingFactor +func (x *DecryptedNote) ProtoReflect() protoreflect.Message { + mi := &file_note_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *DecryptedNote) GetRawValue() isDecryptedNote_RawValue { - if m != nil { - return m.RawValue - } - return nil + +// Deprecated: Use DecryptedNote.ProtoReflect.Descriptor instead. +func (*DecryptedNote) Descriptor() ([]byte, []int) { + return file_note_proto_rawDescGZIP(), []int{2} } -func (m *DecryptedNote) GetNoteType() NoteType { - if m != nil { - return m.NoteType +func (x *DecryptedNote) GetNoteType() NoteType { + if x != nil { + return x.NoteType } return NoteType_TRANSPARENT } -func (m *DecryptedNote) GetPos() uint64 { - if m != nil { - return m.Pos +func (x *DecryptedNote) GetPos() uint64 { + if x != nil { + return x.Pos } return 0 } -func (m *DecryptedNote) GetValue() uint64 { - if m != nil { - return m.Value +func (x *DecryptedNote) GetValue() uint64 { + if x != nil { + return x.Value } return 0 } -func (m *DecryptedNote) GetNonce() *Nonce { - if m != nil { - return m.Nonce +func (x *DecryptedNote) GetNonce() *Nonce { + if x != nil { + return x.Nonce } return nil } -func (m *DecryptedNote) GetRG() *CompressedPoint { - if m != nil { - return m.RG +func (x *DecryptedNote) GetRG() *CompressedPoint { + if x != nil { + return x.RG } return nil } -func (m *DecryptedNote) GetPkR() *CompressedPoint { - if m != nil { - return m.PkR +func (x *DecryptedNote) GetPkR() *CompressedPoint { + if x != nil { + return x.PkR } return nil } -func (m *DecryptedNote) GetValueCommitment() *Scalar { - if m != nil { - return m.ValueCommitment +func (x *DecryptedNote) GetValueCommitment() *Scalar { + if x != nil { + return x.ValueCommitment + } + return nil +} + +func (x *DecryptedNote) GetBlindingFactor() *Scalar { + if x != nil { + return x.BlindingFactor } return nil } -func (m *DecryptedNote) GetBlindingFactor() *Scalar { +func (m *DecryptedNote) GetRawBlindingFactor() isDecryptedNote_RawBlindingFactor { if m != nil { - return m.BlindingFactor + return m.RawBlindingFactor } return nil } -func (m *DecryptedNote) GetTransparentBlindingFactor() *Scalar { - if x, ok := m.GetRawBlindingFactor().(*DecryptedNote_TransparentBlindingFactor); ok { +func (x *DecryptedNote) GetTransparentBlindingFactor() *Scalar { + if x, ok := x.GetRawBlindingFactor().(*DecryptedNote_TransparentBlindingFactor); ok { return x.TransparentBlindingFactor } return nil } -func (m *DecryptedNote) GetEncryptedBlindingFactor() []byte { - if x, ok := m.GetRawBlindingFactor().(*DecryptedNote_EncryptedBlindingFactor); ok { +func (x *DecryptedNote) GetEncryptedBlindingFactor() []byte { + if x, ok := x.GetRawBlindingFactor().(*DecryptedNote_EncryptedBlindingFactor); ok { return x.EncryptedBlindingFactor } return nil } -func (m *DecryptedNote) GetTransparentValue() uint64 { - if x, ok := m.GetRawValue().(*DecryptedNote_TransparentValue); ok { +func (m *DecryptedNote) GetRawValue() isDecryptedNote_RawValue { + if m != nil { + return m.RawValue + } + return nil +} + +func (x *DecryptedNote) GetTransparentValue() uint64 { + if x, ok := x.GetRawValue().(*DecryptedNote_TransparentValue); ok { return x.TransparentValue } return 0 } -func (m *DecryptedNote) GetEncryptedValue() []byte { - if x, ok := m.GetRawValue().(*DecryptedNote_EncryptedValue); ok { +func (x *DecryptedNote) GetEncryptedValue() []byte { + if x, ok := x.GetRawValue().(*DecryptedNote_EncryptedValue); ok { return x.EncryptedValue } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*DecryptedNote) XXX_OneofWrappers() []interface{} { - return []interface{}{ +type isDecryptedNote_RawBlindingFactor interface { + isDecryptedNote_RawBlindingFactor() +} + +type DecryptedNote_TransparentBlindingFactor struct { + TransparentBlindingFactor *Scalar `protobuf:"bytes,9,opt,name=transparent_blinding_factor,json=transparentBlindingFactor,proto3,oneof"` +} + +type DecryptedNote_EncryptedBlindingFactor struct { + EncryptedBlindingFactor []byte `protobuf:"bytes,10,opt,name=encrypted_blinding_factor,json=encryptedBlindingFactor,proto3,oneof"` +} + +func (*DecryptedNote_TransparentBlindingFactor) isDecryptedNote_RawBlindingFactor() {} + +func (*DecryptedNote_EncryptedBlindingFactor) isDecryptedNote_RawBlindingFactor() {} + +type isDecryptedNote_RawValue interface { + isDecryptedNote_RawValue() +} + +type DecryptedNote_TransparentValue struct { + TransparentValue uint64 `protobuf:"fixed64,11,opt,name=transparent_value,json=transparentValue,proto3,oneof"` +} + +type DecryptedNote_EncryptedValue struct { + EncryptedValue []byte `protobuf:"bytes,12,opt,name=encrypted_value,json=encryptedValue,proto3,oneof"` +} + +func (*DecryptedNote_TransparentValue) isDecryptedNote_RawValue() {} + +func (*DecryptedNote_EncryptedValue) isDecryptedNote_RawValue() {} + +var File_note_proto protoreflect.FileDescriptor + +var file_note_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x6e, 0x6f, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x72, 0x75, + 0x73, 0x6b, 0x1a, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x27, 0x0a, 0x09, 0x4e, 0x75, 0x6c, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x01, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, + 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x01, 0x68, 0x22, 0xf7, 0x03, 0x0a, 0x04, 0x4e, 0x6f, 0x74, + 0x65, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4e, 0x6f, 0x74, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x6e, 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, + 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x70, 0x6f, 0x73, + 0x12, 0x21, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x6e, 0x6f, + 0x6e, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x03, 0x72, 0x5f, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, + 0x65, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x02, 0x72, 0x47, 0x12, 0x28, 0x0a, 0x04, 0x70, + 0x6b, 0x5f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x75, 0x73, 0x6b, + 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, + 0x52, 0x03, 0x70, 0x6b, 0x52, 0x12, 0x37, 0x0a, 0x10, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x0f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x4e, + 0x0a, 0x1b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x6c, + 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x61, + 0x72, 0x48, 0x00, 0x52, 0x19, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x42, 0x6c, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x3c, + 0x0a, 0x19, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x69, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0c, 0x48, 0x00, 0x52, 0x17, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x42, 0x6c, + 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x2d, 0x0a, 0x11, + 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x48, 0x01, 0x52, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x29, 0x0a, 0x0f, 0x65, + 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x0c, 0x48, 0x01, 0x52, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x62, 0x6c, 0x69, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x22, 0xd2, 0x04, 0x0a, 0x0d, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, + 0x4e, 0x6f, 0x74, 0x65, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4e, + 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x6e, 0x6f, 0x74, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, + 0x70, 0x6f, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x06, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, + 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x03, + 0x72, 0x5f, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x75, 0x73, 0x6b, + 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, + 0x52, 0x02, 0x72, 0x47, 0x12, 0x28, 0x0a, 0x04, 0x70, 0x6b, 0x5f, 0x72, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, + 0x73, 0x73, 0x65, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x03, 0x70, 0x6b, 0x52, 0x12, 0x37, + 0x0a, 0x10, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, + 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, + 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x0f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0f, 0x62, 0x6c, 0x69, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x0e, + 0x62, 0x6c, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x4e, + 0x0a, 0x1b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x6c, + 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x61, + 0x72, 0x48, 0x00, 0x52, 0x19, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x42, 0x6c, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x3c, + 0x0a, 0x19, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x69, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x0c, 0x48, 0x00, 0x52, 0x17, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x42, 0x6c, + 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x2d, 0x0a, 0x11, + 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x06, 0x48, 0x01, 0x52, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x29, 0x0a, 0x0f, 0x65, + 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x0c, 0x48, 0x01, 0x52, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x72, 0x61, 0x77, 0x42, 0x6c, 0x69, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, + 0x61, 0x77, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0x2b, 0x0a, 0x08, 0x4e, 0x6f, 0x74, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x50, 0x41, 0x52, 0x45, + 0x4e, 0x54, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, 0x41, 0x54, + 0x45, 0x44, 0x10, 0x01, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, 0x6b, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x75, 0x73, 0x6b, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_note_proto_rawDescOnce sync.Once + file_note_proto_rawDescData = file_note_proto_rawDesc +) + +func file_note_proto_rawDescGZIP() []byte { + file_note_proto_rawDescOnce.Do(func() { + file_note_proto_rawDescData = protoimpl.X.CompressGZIP(file_note_proto_rawDescData) + }) + return file_note_proto_rawDescData +} + +var file_note_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_note_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_note_proto_goTypes = []interface{}{ + (NoteType)(0), // 0: rusk.NoteType + (*Nullifier)(nil), // 1: rusk.Nullifier + (*Note)(nil), // 2: rusk.Note + (*DecryptedNote)(nil), // 3: rusk.DecryptedNote + (*Scalar)(nil), // 4: rusk.Scalar + (*Nonce)(nil), // 5: rusk.Nonce + (*CompressedPoint)(nil), // 6: rusk.CompressedPoint +} +var file_note_proto_depIdxs = []int32{ + 4, // 0: rusk.Nullifier.h:type_name -> rusk.Scalar + 0, // 1: rusk.Note.note_type:type_name -> rusk.NoteType + 5, // 2: rusk.Note.nonce:type_name -> rusk.Nonce + 6, // 3: rusk.Note.r_g:type_name -> rusk.CompressedPoint + 6, // 4: rusk.Note.pk_r:type_name -> rusk.CompressedPoint + 4, // 5: rusk.Note.value_commitment:type_name -> rusk.Scalar + 4, // 6: rusk.Note.transparent_blinding_factor:type_name -> rusk.Scalar + 0, // 7: rusk.DecryptedNote.note_type:type_name -> rusk.NoteType + 5, // 8: rusk.DecryptedNote.nonce:type_name -> rusk.Nonce + 6, // 9: rusk.DecryptedNote.r_g:type_name -> rusk.CompressedPoint + 6, // 10: rusk.DecryptedNote.pk_r:type_name -> rusk.CompressedPoint + 4, // 11: rusk.DecryptedNote.value_commitment:type_name -> rusk.Scalar + 4, // 12: rusk.DecryptedNote.blinding_factor:type_name -> rusk.Scalar + 4, // 13: rusk.DecryptedNote.transparent_blinding_factor:type_name -> rusk.Scalar + 14, // [14:14] is the sub-list for method output_type + 14, // [14:14] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name +} + +func init() { file_note_proto_init() } +func file_note_proto_init() { + if File_note_proto != nil { + return + } + file_field_proto_init() + if !protoimpl.UnsafeEnabled { + file_note_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Nullifier); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_note_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Note); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_note_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecryptedNote); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_note_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*Note_TransparentBlindingFactor)(nil), + (*Note_EncryptedBlindingFactor)(nil), + (*Note_TransparentValue)(nil), + (*Note_EncryptedValue)(nil), + } + file_note_proto_msgTypes[2].OneofWrappers = []interface{}{ (*DecryptedNote_TransparentBlindingFactor)(nil), (*DecryptedNote_EncryptedBlindingFactor)(nil), (*DecryptedNote_TransparentValue)(nil), (*DecryptedNote_EncryptedValue)(nil), } -} - -func init() { - proto.RegisterEnum("rusk.NoteType", NoteType_name, NoteType_value) - proto.RegisterType((*Nullifier)(nil), "rusk.Nullifier") - proto.RegisterType((*Note)(nil), "rusk.Note") - proto.RegisterType((*DecryptedNote)(nil), "rusk.DecryptedNote") -} - -func init() { proto.RegisterFile("note.proto", fileDescriptor_640dafe07df50d4e) } - -var fileDescriptor_640dafe07df50d4e = []byte{ - // 510 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xcd, 0x6e, 0xda, 0x4c, - 0x14, 0x86, 0x71, 0x30, 0x7f, 0x07, 0x3e, 0x30, 0xf3, 0xb5, 0xaa, 0x93, 0x6e, 0x28, 0x8b, 0xd6, - 0x4d, 0x14, 0x90, 0x52, 0x55, 0xdd, 0x74, 0x83, 0x49, 0x52, 0x56, 0x6e, 0x34, 0xd0, 0x2e, 0xba, - 0xb1, 0xfc, 0x33, 0x18, 0x0b, 0x7b, 0xc6, 0x1a, 0x8f, 0x1b, 0x71, 0x9b, 0xbd, 0x99, 0x6e, 0x2b, - 0x8f, 0x09, 0x21, 0xd0, 0x36, 0x69, 0x94, 0xdd, 0xd8, 0xe7, 0x79, 0xcf, 0x19, 0xcf, 0x3c, 0x32, - 0x00, 0x65, 0x82, 0x0c, 0x12, 0xce, 0x04, 0x43, 0x2a, 0xcf, 0xd2, 0xe5, 0x51, 0x73, 0x1e, 0x92, - 0xc8, 0x2f, 0x5e, 0xf5, 0xdf, 0x40, 0xc3, 0xca, 0xa2, 0x28, 0x9c, 0x87, 0x84, 0xa3, 0x23, 0x50, - 0x16, 0xba, 0xd2, 0x53, 0x8c, 0xe6, 0x59, 0x6b, 0x90, 0xb3, 0x83, 0xa9, 0xe7, 0x44, 0x0e, 0xc7, - 0xca, 0xa2, 0xff, 0xb3, 0x0c, 0xaa, 0xc5, 0x04, 0x41, 0x27, 0xd0, 0xc8, 0x5b, 0xda, 0x62, 0x95, - 0x10, 0x09, 0xb7, 0xcf, 0xda, 0x05, 0x9c, 0x97, 0x67, 0xab, 0x84, 0xe0, 0x3a, 0x5d, 0xaf, 0x90, - 0x06, 0xe5, 0x84, 0xa5, 0xfa, 0x41, 0x4f, 0x31, 0xaa, 0x38, 0x5f, 0xa2, 0x57, 0x50, 0xa1, 0x8c, - 0x7a, 0x44, 0x2f, 0xcb, 0x39, 0xcd, 0x9b, 0x28, 0xf5, 0x08, 0x2e, 0x2a, 0xe8, 0x35, 0x94, 0xb9, - 0x1d, 0xe8, 0xaa, 0x04, 0x9e, 0x17, 0xc0, 0x98, 0xc5, 0x09, 0x27, 0x69, 0x4a, 0xfc, 0x2b, 0x16, - 0x52, 0x81, 0x0f, 0xf8, 0x27, 0x64, 0x80, 0x9a, 0x2c, 0x6d, 0xae, 0x57, 0xfe, 0x06, 0x96, 0x93, - 0x25, 0x46, 0x1f, 0x40, 0xfb, 0xee, 0x44, 0x19, 0xb1, 0x3d, 0x16, 0xc7, 0xa1, 0x88, 0x09, 0x15, - 0x7a, 0xf5, 0x37, 0xdf, 0xd9, 0x91, 0xd4, 0x78, 0x03, 0x21, 0x0b, 0x5e, 0x0a, 0xee, 0xd0, 0x34, - 0x71, 0x38, 0xa1, 0xc2, 0x76, 0xa3, 0x90, 0xfa, 0x21, 0x0d, 0xec, 0xb9, 0xe3, 0x09, 0xc6, 0xf5, - 0xda, 0x7e, 0x8f, 0x49, 0x09, 0x1f, 0x6e, 0x45, 0xcc, 0x75, 0xe2, 0x52, 0x06, 0xd0, 0x47, 0x38, - 0x24, 0xd4, 0xe3, 0xab, 0x44, 0x10, 0x7f, 0xaf, 0x5b, 0xbd, 0xa7, 0x18, 0xad, 0x49, 0x09, 0xbf, - 0xd8, 0x20, 0x3b, 0xe9, 0x53, 0xe8, 0x6e, 0xef, 0x46, 0x6e, 0x56, 0x6f, 0xe4, 0x67, 0x3b, 0x51, - 0xb0, 0xb6, 0x55, 0xfa, 0x9a, 0x57, 0xd0, 0x5b, 0xe8, 0xdc, 0x0e, 0x2b, 0x60, 0x90, 0x23, 0x14, - 0xdc, 0xde, 0x14, 0x24, 0x6a, 0x76, 0xa1, 0xb3, 0xb3, 0x1b, 0xb3, 0x06, 0x15, 0x99, 0xe9, 0xff, - 0x50, 0xe1, 0xbf, 0x73, 0xb2, 0xc6, 0x9f, 0x42, 0x81, 0x67, 0xeb, 0xce, 0x52, 0x81, 0x2a, 0x2e, - 0x1e, 0x6e, 0xc5, 0x50, 0xef, 0x13, 0xa3, 0xf2, 0x50, 0x31, 0xaa, 0x8f, 0x12, 0xa3, 0xf6, 0x10, - 0x31, 0xde, 0xef, 0x1d, 0x98, 0xbc, 0xbe, 0xdd, 0x5c, 0xdb, 0xbd, 0x7b, 0x83, 0xf7, 0xf8, 0xd4, - 0x78, 0x52, 0x9f, 0xe0, 0x51, 0x3e, 0x35, 0xff, 0xc5, 0xa7, 0xd6, 0x1f, 0x7c, 0xfa, 0x1f, 0xba, - 0xdc, 0xb9, 0xbe, 0x3b, 0xce, 0x04, 0xa8, 0x73, 0xe7, 0x5a, 0x02, 0xc7, 0x27, 0x50, 0xbf, 0x71, - 0x05, 0x75, 0xa0, 0x39, 0xc3, 0x23, 0x6b, 0x7a, 0x35, 0xc2, 0x17, 0xd6, 0x4c, 0x2b, 0xa1, 0x36, - 0xc0, 0x67, 0xf3, 0xf2, 0xcb, 0x74, 0x3c, 0x9a, 0x5d, 0x9c, 0x6b, 0x8a, 0x79, 0xfc, 0xcd, 0x08, - 0x42, 0xb1, 0xc8, 0xdc, 0x81, 0xc7, 0xe2, 0xa1, 0x9f, 0xa5, 0xcb, 0x53, 0xf9, 0xf7, 0x72, 0xb3, - 0xf9, 0xd0, 0xc9, 0x04, 0x0b, 0x08, 0x1d, 0x06, 0x6c, 0x98, 0x9f, 0x9a, 0x5b, 0x95, 0x95, 0x77, - 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x92, 0x04, 0xc7, 0x6c, 0xf8, 0x04, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_note_proto_rawDesc, + NumEnums: 1, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_note_proto_goTypes, + DependencyIndexes: file_note_proto_depIdxs, + EnumInfos: file_note_proto_enumTypes, + MessageInfos: file_note_proto_msgTypes, + }.Build() + File_note_proto = out.File + file_note_proto_rawDesc = nil + file_note_proto_goTypes = nil + file_note_proto_depIdxs = nil } diff --git a/autogen/go/rusk/rusk.mock.go b/autogen/go/rusk/rusk.mock.go index 226b94c..9fcb688 100644 --- a/autogen/go/rusk/rusk.mock.go +++ b/autogen/go/rusk/rusk.mock.go @@ -26,14 +26,14 @@ func (m *RuskMock) ValidateStateTransition(ctx context.Context, req *ValidateSta res := &ValidateStateTransitionResponse{ SuccessfulCalls: []int32{ - 160, - 350, - 942, - 767, - 613, - 376, - 100, - 228, + 970, + 200, + 979, + 899, + 576, + 119, + 267, + 81, }, } return res, nil @@ -41,7 +41,7 @@ func (m *RuskMock) ValidateStateTransition(ctx context.Context, req *ValidateSta func (m *RuskMock) ExecuteStateTransition(ctx context.Context, req *ExecuteStateTransitionRequest) (*ExecuteStateTransitionResponse, error) { res := &ExecuteStateTransitionResponse{ - Success: false, + Success: true, Committee: []*Provisioner{ &Provisioner{ Stakes: []*Stake{ @@ -201,30 +201,6 @@ func (m *RuskMock) FullScanOwnedNotes(ctx context.Context, req *ViewKey) (*Owned RawBlindingFactor: &DecryptedNote_EncryptedBlindingFactor{}, RawValue: &DecryptedNote_EncryptedValue{}, }, - &DecryptedNote{ - NoteType: 0, - Nonce: &Nonce{}, - RG: &CompressedPoint{}, - PkR: &CompressedPoint{}, - ValueCommitment: &Scalar{}, - BlindingFactor: &Scalar{}, - RawBlindingFactor: &DecryptedNote_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - RawValue: &DecryptedNote_EncryptedValue{}, - }, - &DecryptedNote{ - NoteType: 0, - Nonce: &Nonce{}, - RG: &CompressedPoint{}, - PkR: &CompressedPoint{}, - ValueCommitment: &Scalar{}, - BlindingFactor: &Scalar{}, - RawBlindingFactor: &DecryptedNote_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - RawValue: &DecryptedNote_EncryptedValue{}, - }, &DecryptedNote{ NoteType: 0, Nonce: &Nonce{}, @@ -238,19 +214,17 @@ func (m *RuskMock) FullScanOwnedNotes(ctx context.Context, req *ViewKey) (*Owned RawValue: &DecryptedNote_TransparentValue{}, }, &DecryptedNote{ - NoteType: 0, - Nonce: &Nonce{}, - RG: &CompressedPoint{}, - PkR: &CompressedPoint{}, - ValueCommitment: &Scalar{}, - BlindingFactor: &Scalar{}, - RawBlindingFactor: &DecryptedNote_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - RawValue: &DecryptedNote_EncryptedValue{}, + NoteType: 0, + Nonce: &Nonce{}, + RG: &CompressedPoint{}, + PkR: &CompressedPoint{}, + ValueCommitment: &Scalar{}, + BlindingFactor: &Scalar{}, + RawBlindingFactor: &DecryptedNote_EncryptedBlindingFactor{}, + RawValue: &DecryptedNote_TransparentValue{}, }, &DecryptedNote{ - NoteType: 0, + NoteType: 1, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, @@ -259,6 +233,16 @@ func (m *RuskMock) FullScanOwnedNotes(ctx context.Context, req *ViewKey) (*Owned RawValue: &DecryptedNote_TransparentValue{}, RawBlindingFactor: &DecryptedNote_EncryptedBlindingFactor{}, }, + &DecryptedNote{ + NoteType: 1, + Nonce: &Nonce{}, + RG: &CompressedPoint{}, + PkR: &CompressedPoint{}, + ValueCommitment: &Scalar{}, + BlindingFactor: &Scalar{}, + RawBlindingFactor: &DecryptedNote_EncryptedBlindingFactor{}, + RawValue: &DecryptedNote_TransparentValue{}, + }, &DecryptedNote{ NoteType: 0, Nonce: &Nonce{}, @@ -270,7 +254,7 @@ func (m *RuskMock) FullScanOwnedNotes(ctx context.Context, req *ViewKey) (*Owned RawValue: &DecryptedNote_TransparentValue{}, }, &DecryptedNote{ - NoteType: 0, + NoteType: 1, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, @@ -279,7 +263,17 @@ func (m *RuskMock) FullScanOwnedNotes(ctx context.Context, req *ViewKey) (*Owned RawBlindingFactor: &DecryptedNote_TransparentBlindingFactor{ TransparentBlindingFactor: &Scalar{}, }, - RawValue: &DecryptedNote_EncryptedValue{}, + RawValue: &DecryptedNote_TransparentValue{}, + }, + &DecryptedNote{ + NoteType: 1, + Nonce: &Nonce{}, + RG: &CompressedPoint{}, + PkR: &CompressedPoint{}, + ValueCommitment: &Scalar{}, + BlindingFactor: &Scalar{}, + RawBlindingFactor: &DecryptedNote_EncryptedBlindingFactor{}, + RawValue: &DecryptedNote_EncryptedValue{}, }, }, } @@ -346,10 +340,8 @@ func (m *RuskMock) NewTransaction(ctx context.Context, req *NewTransactionReques RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -359,13 +351,15 @@ func (m *RuskMock) NewTransaction(ctx context.Context, req *NewTransactionReques }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -381,7 +375,7 @@ func (m *RuskMock) NewTransaction(ctx context.Context, req *NewTransactionReques PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_TransparentValue{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -391,13 +385,13 @@ func (m *RuskMock) NewTransaction(ctx context.Context, req *NewTransactionReques }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_TransparentValue{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -407,13 +401,15 @@ func (m *RuskMock) NewTransaction(ctx context.Context, req *NewTransactionReques }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -429,7 +425,7 @@ func (m *RuskMock) NewTransaction(ctx context.Context, req *NewTransactionReques PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_EncryptedValue{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -462,8 +458,10 @@ func (m *RuskMock) NewTransaction(ctx context.Context, req *NewTransactionReques RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - Value: &Note_EncryptedValue{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -474,15 +472,13 @@ func (m *RuskMock) NewTransaction(ctx context.Context, req *NewTransactionReques }, Fee: &TransactionOutput{ Note: &Note{ - NoteType: 0, + NoteType: 1, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -601,7 +597,7 @@ func (m *RuskMock) NewStake(ctx context.Context, req *StakeTransactionRequest) ( }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, @@ -609,7 +605,7 @@ func (m *RuskMock) NewStake(ctx context.Context, req *StakeTransactionRequest) ( BlindingFactor: &Note_TransparentBlindingFactor{ TransparentBlindingFactor: &Scalar{}, }, - Value: &Note_EncryptedValue{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -619,7 +615,7 @@ func (m *RuskMock) NewStake(ctx context.Context, req *StakeTransactionRequest) ( }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, @@ -627,7 +623,7 @@ func (m *RuskMock) NewStake(ctx context.Context, req *StakeTransactionRequest) ( BlindingFactor: &Note_TransparentBlindingFactor{ TransparentBlindingFactor: &Scalar{}, }, - Value: &Note_TransparentValue{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -637,15 +633,15 @@ func (m *RuskMock) NewStake(ctx context.Context, req *StakeTransactionRequest) ( }, &TransactionOutput{ Note: &Note{ - NoteType: 0, + NoteType: 1, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - Value: &Note_TransparentValue{}, BlindingFactor: &Note_TransparentBlindingFactor{ TransparentBlindingFactor: &Scalar{}, }, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -660,10 +656,8 @@ func (m *RuskMock) NewStake(ctx context.Context, req *StakeTransactionRequest) ( RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -678,10 +672,8 @@ func (m *RuskMock) NewStake(ctx context.Context, req *StakeTransactionRequest) ( RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_TransparentValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -691,7 +683,7 @@ func (m *RuskMock) NewStake(ctx context.Context, req *StakeTransactionRequest) ( }, &TransactionOutput{ Note: &Note{ - NoteType: 0, + NoteType: 1, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, @@ -715,8 +707,10 @@ func (m *RuskMock) NewStake(ctx context.Context, req *StakeTransactionRequest) ( RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -792,13 +786,15 @@ func (m *RuskMock) NewWithdrawStake(ctx context.Context, req *WithdrawStakeTrans Outputs: []*TransactionOutput{ &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -813,10 +809,10 @@ func (m *RuskMock) NewWithdrawStake(ctx context.Context, req *WithdrawStakeTrans RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - Value: &Note_TransparentValue{}, BlindingFactor: &Note_TransparentBlindingFactor{ TransparentBlindingFactor: &Scalar{}, }, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -826,15 +822,15 @@ func (m *RuskMock) NewWithdrawStake(ctx context.Context, req *WithdrawStakeTrans }, &TransactionOutput{ Note: &Note{ - NoteType: 0, + NoteType: 1, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, + Value: &Note_EncryptedValue{}, BlindingFactor: &Note_TransparentBlindingFactor{ TransparentBlindingFactor: &Scalar{}, }, - Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -844,7 +840,7 @@ func (m *RuskMock) NewWithdrawStake(ctx context.Context, req *WithdrawStakeTrans }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, @@ -852,7 +848,7 @@ func (m *RuskMock) NewWithdrawStake(ctx context.Context, req *WithdrawStakeTrans BlindingFactor: &Note_TransparentBlindingFactor{ TransparentBlindingFactor: &Scalar{}, }, - Value: &Note_TransparentValue{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -862,13 +858,15 @@ func (m *RuskMock) NewWithdrawStake(ctx context.Context, req *WithdrawStakeTrans }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -883,10 +881,8 @@ func (m *RuskMock) NewWithdrawStake(ctx context.Context, req *WithdrawStakeTrans RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -901,8 +897,10 @@ func (m *RuskMock) NewWithdrawStake(ctx context.Context, req *WithdrawStakeTrans RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -912,15 +910,15 @@ func (m *RuskMock) NewWithdrawStake(ctx context.Context, req *WithdrawStakeTrans }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - Value: &Note_TransparentValue{}, BlindingFactor: &Note_TransparentBlindingFactor{ TransparentBlindingFactor: &Scalar{}, }, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -931,15 +929,15 @@ func (m *RuskMock) NewWithdrawStake(ctx context.Context, req *WithdrawStakeTrans }, Fee: &TransactionOutput{ Note: &Note{ - NoteType: 0, + NoteType: 1, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - Value: &Note_EncryptedValue{}, BlindingFactor: &Note_TransparentBlindingFactor{ TransparentBlindingFactor: &Scalar{}, }, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1008,15 +1006,13 @@ func (m *RuskMock) NewBid(ctx context.Context, req *BidTransactionRequest) (*Bid Outputs: []*TransactionOutput{ &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1031,10 +1027,8 @@ func (m *RuskMock) NewBid(ctx context.Context, req *BidTransactionRequest) (*Bid RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1044,15 +1038,13 @@ func (m *RuskMock) NewBid(ctx context.Context, req *BidTransactionRequest) (*Bid }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1067,10 +1059,8 @@ func (m *RuskMock) NewBid(ctx context.Context, req *BidTransactionRequest) (*Bid RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1085,8 +1075,10 @@ func (m *RuskMock) NewBid(ctx context.Context, req *BidTransactionRequest) (*Bid RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1096,15 +1088,13 @@ func (m *RuskMock) NewBid(ctx context.Context, req *BidTransactionRequest) (*Bid }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_TransparentValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1119,8 +1109,10 @@ func (m *RuskMock) NewBid(ctx context.Context, req *BidTransactionRequest) (*Bid RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_TransparentValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1136,7 +1128,7 @@ func (m *RuskMock) NewBid(ctx context.Context, req *BidTransactionRequest) (*Bid PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_TransparentValue{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1152,10 +1144,8 @@ func (m *RuskMock) NewBid(ctx context.Context, req *BidTransactionRequest) (*Bid RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1224,13 +1214,13 @@ func (m *RuskMock) NewWithdrawBid(ctx context.Context, req *WithdrawBidTransacti Outputs: []*TransactionOutput{ &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_TransparentValue{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1245,10 +1235,8 @@ func (m *RuskMock) NewWithdrawBid(ctx context.Context, req *WithdrawBidTransacti RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_TransparentValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1258,13 +1246,15 @@ func (m *RuskMock) NewWithdrawBid(ctx context.Context, req *WithdrawBidTransacti }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1274,13 +1264,15 @@ func (m *RuskMock) NewWithdrawBid(ctx context.Context, req *WithdrawBidTransacti }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1295,8 +1287,10 @@ func (m *RuskMock) NewWithdrawBid(ctx context.Context, req *WithdrawBidTransacti RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - Value: &Note_EncryptedValue{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1311,10 +1305,8 @@ func (m *RuskMock) NewWithdrawBid(ctx context.Context, req *WithdrawBidTransacti RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_TransparentValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1345,10 +1337,8 @@ func (m *RuskMock) NewWithdrawBid(ctx context.Context, req *WithdrawBidTransacti RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1359,13 +1349,15 @@ func (m *RuskMock) NewWithdrawBid(ctx context.Context, req *WithdrawBidTransacti }, Fee: &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_TransparentValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1434,13 +1426,13 @@ func (m *RuskMock) NewWithdrawFees(ctx context.Context, req *WithdrawFeesTransac Outputs: []*TransactionOutput{ &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_TransparentValue{}, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1471,8 +1463,10 @@ func (m *RuskMock) NewWithdrawFees(ctx context.Context, req *WithdrawFeesTransac RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_TransparentValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1482,13 +1476,15 @@ func (m *RuskMock) NewWithdrawFees(ctx context.Context, req *WithdrawFeesTransac }, &TransactionOutput{ Note: &Note{ - NoteType: 0, + NoteType: 1, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1503,10 +1499,8 @@ func (m *RuskMock) NewWithdrawFees(ctx context.Context, req *WithdrawFeesTransac RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_EncryptedValue{}, + Value: &Note_TransparentValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1521,8 +1515,10 @@ func (m *RuskMock) NewWithdrawFees(ctx context.Context, req *WithdrawFeesTransac RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1553,8 +1549,10 @@ func (m *RuskMock) NewWithdrawFees(ctx context.Context, req *WithdrawFeesTransac RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_TransparentValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1570,10 +1568,8 @@ func (m *RuskMock) NewWithdrawFees(ctx context.Context, req *WithdrawFeesTransac RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_TransparentValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1588,7 +1584,7 @@ func (m *RuskMock) NewWithdrawFees(ctx context.Context, req *WithdrawFeesTransac func (m *RuskMock) NewSlash(ctx context.Context, req *SlashTransactionRequest) (*SlashTransaction, error) { res := &SlashTransaction{ - Step: 304, + Step: 478, Tx: &Transaction{ Inputs: []*TransactionInput{ &TransactionInput{ @@ -1648,10 +1644,8 @@ func (m *RuskMock) NewSlash(ctx context.Context, req *SlashTransactionRequest) ( RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1666,10 +1660,8 @@ func (m *RuskMock) NewSlash(ctx context.Context, req *SlashTransactionRequest) ( RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1679,13 +1671,15 @@ func (m *RuskMock) NewSlash(ctx context.Context, req *SlashTransactionRequest) ( }, &TransactionOutput{ Note: &Note{ - NoteType: 0, + NoteType: 1, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_TransparentValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_EncryptedValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1700,8 +1694,10 @@ func (m *RuskMock) NewSlash(ctx context.Context, req *SlashTransactionRequest) ( RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_TransparentValue{}, + Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1716,10 +1712,8 @@ func (m *RuskMock) NewSlash(ctx context.Context, req *SlashTransactionRequest) ( RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_TransparentValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1729,13 +1723,15 @@ func (m *RuskMock) NewSlash(ctx context.Context, req *SlashTransactionRequest) ( }, &TransactionOutput{ Note: &Note{ - NoteType: 0, + NoteType: 1, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_TransparentValue{}, + Value: &Note_EncryptedValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1745,13 +1741,13 @@ func (m *RuskMock) NewSlash(ctx context.Context, req *SlashTransactionRequest) ( }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_EncryptedValue{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1761,15 +1757,13 @@ func (m *RuskMock) NewSlash(ctx context.Context, req *SlashTransactionRequest) ( }, &TransactionOutput{ Note: &Note{ - NoteType: 1, + NoteType: 0, Nonce: &Nonce{}, RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_TransparentBlindingFactor{ - TransparentBlindingFactor: &Scalar{}, - }, - Value: &Note_TransparentValue{}, + BlindingFactor: &Note_EncryptedBlindingFactor{}, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, @@ -1785,8 +1779,10 @@ func (m *RuskMock) NewSlash(ctx context.Context, req *SlashTransactionRequest) ( RG: &CompressedPoint{}, PkR: &CompressedPoint{}, ValueCommitment: &Scalar{}, - BlindingFactor: &Note_EncryptedBlindingFactor{}, - Value: &Note_TransparentValue{}, + BlindingFactor: &Note_TransparentBlindingFactor{ + TransparentBlindingFactor: &Scalar{}, + }, + Value: &Note_TransparentValue{}, }, Pk: &PublicKey{ AG: &CompressedPoint{}, diff --git a/autogen/go/rusk/rusk.pb.go b/autogen/go/rusk/rusk.pb.go index 33334c2..ed66817 100644 --- a/autogen/go/rusk/rusk.pb.go +++ b/autogen/go/rusk/rusk.pb.go @@ -1,276 +1,337 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.21.0 +// protoc v3.11.4 // source: rusk.proto package rusk import ( context "context" - fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type EchoRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *EchoRequest) Reset() { *m = EchoRequest{} } -func (m *EchoRequest) String() string { return proto.CompactTextString(m) } -func (*EchoRequest) ProtoMessage() {} -func (*EchoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{0} +func (x *EchoRequest) Reset() { + *x = EchoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EchoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EchoRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EchoRequest.Unmarshal(m, b) + +func (*EchoRequest) ProtoMessage() {} + +func (x *EchoRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *EchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EchoRequest.Marshal(b, m, deterministic) + +// Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead. +func (*EchoRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{0} } -func (m *EchoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_EchoRequest.Merge(m, src) + +type EchoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *EchoRequest) XXX_Size() int { - return xxx_messageInfo_EchoRequest.Size(m) + +func (x *EchoResponse) Reset() { + *x = EchoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *EchoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_EchoRequest.DiscardUnknown(m) + +func (x *EchoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_EchoRequest proto.InternalMessageInfo +func (*EchoResponse) ProtoMessage() {} -type EchoResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *EchoResponse) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *EchoResponse) Reset() { *m = EchoResponse{} } -func (m *EchoResponse) String() string { return proto.CompactTextString(m) } -func (*EchoResponse) ProtoMessage() {} +// Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead. func (*EchoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{1} -} -func (m *EchoResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EchoResponse.Unmarshal(m, b) + return file_rusk_proto_rawDescGZIP(), []int{1} } -func (m *EchoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EchoResponse.Marshal(b, m, deterministic) -} -func (m *EchoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_EchoResponse.Merge(m, src) + +type BidList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BidList [][]byte `protobuf:"bytes,1,rep,name=bid_list,json=bidList,proto3" json:"bid_list,omitempty"` } -func (m *EchoResponse) XXX_Size() int { - return xxx_messageInfo_EchoResponse.Size(m) + +func (x *BidList) Reset() { + *x = BidList{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *EchoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_EchoResponse.DiscardUnknown(m) + +func (x *BidList) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_EchoResponse proto.InternalMessageInfo +func (*BidList) ProtoMessage() {} -type BidList struct { - BidList [][]byte `protobuf:"bytes,1,rep,name=bid_list,json=bidList,proto3" json:"bid_list,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *BidList) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *BidList) Reset() { *m = BidList{} } -func (m *BidList) String() string { return proto.CompactTextString(m) } -func (*BidList) ProtoMessage() {} +// Deprecated: Use BidList.ProtoReflect.Descriptor instead. func (*BidList) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{2} -} -func (m *BidList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BidList.Unmarshal(m, b) -} -func (m *BidList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BidList.Marshal(b, m, deterministic) -} -func (m *BidList) XXX_Merge(src proto.Message) { - xxx_messageInfo_BidList.Merge(m, src) -} -func (m *BidList) XXX_Size() int { - return xxx_messageInfo_BidList.Size(m) -} -func (m *BidList) XXX_DiscardUnknown() { - xxx_messageInfo_BidList.DiscardUnknown(m) + return file_rusk_proto_rawDescGZIP(), []int{2} } -var xxx_messageInfo_BidList proto.InternalMessageInfo - -func (m *BidList) GetBidList() [][]byte { - if m != nil { - return m.BidList +func (x *BidList) GetBidList() [][]byte { + if x != nil { + return x.BidList } return nil } type Stake struct { - Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` - StartHeight uint64 `protobuf:"fixed64,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` - EndHeight uint64 `protobuf:"fixed64,3,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Stake) Reset() { *m = Stake{} } -func (m *Stake) String() string { return proto.CompactTextString(m) } -func (*Stake) ProtoMessage() {} -func (*Stake) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{3} -} -func (m *Stake) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Stake.Unmarshal(m, b) -} -func (m *Stake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Stake.Marshal(b, m, deterministic) + Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` + StartHeight uint64 `protobuf:"fixed64,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` + EndHeight uint64 `protobuf:"fixed64,3,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"` } -func (m *Stake) XXX_Merge(src proto.Message) { - xxx_messageInfo_Stake.Merge(m, src) + +func (x *Stake) Reset() { + *x = Stake{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Stake) XXX_Size() int { - return xxx_messageInfo_Stake.Size(m) + +func (x *Stake) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Stake) XXX_DiscardUnknown() { - xxx_messageInfo_Stake.DiscardUnknown(m) + +func (*Stake) ProtoMessage() {} + +func (x *Stake) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Stake proto.InternalMessageInfo +// Deprecated: Use Stake.ProtoReflect.Descriptor instead. +func (*Stake) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{3} +} -func (m *Stake) GetAmount() uint64 { - if m != nil { - return m.Amount +func (x *Stake) GetAmount() uint64 { + if x != nil { + return x.Amount } return 0 } -func (m *Stake) GetStartHeight() uint64 { - if m != nil { - return m.StartHeight +func (x *Stake) GetStartHeight() uint64 { + if x != nil { + return x.StartHeight } return 0 } -func (m *Stake) GetEndHeight() uint64 { - if m != nil { - return m.EndHeight +func (x *Stake) GetEndHeight() uint64 { + if x != nil { + return x.EndHeight } return 0 } type Provisioner struct { - BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` - Stakes []*Stake `protobuf:"bytes,2,rep,name=stakes,proto3" json:"stakes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Provisioner) Reset() { *m = Provisioner{} } -func (m *Provisioner) String() string { return proto.CompactTextString(m) } -func (*Provisioner) ProtoMessage() {} -func (*Provisioner) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{4} -} -func (m *Provisioner) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Provisioner.Unmarshal(m, b) + BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` + Stakes []*Stake `protobuf:"bytes,2,rep,name=stakes,proto3" json:"stakes,omitempty"` } -func (m *Provisioner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Provisioner.Marshal(b, m, deterministic) -} -func (m *Provisioner) XXX_Merge(src proto.Message) { - xxx_messageInfo_Provisioner.Merge(m, src) + +func (x *Provisioner) Reset() { + *x = Provisioner{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Provisioner) XXX_Size() int { - return xxx_messageInfo_Provisioner.Size(m) + +func (x *Provisioner) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Provisioner) XXX_DiscardUnknown() { - xxx_messageInfo_Provisioner.DiscardUnknown(m) + +func (*Provisioner) ProtoMessage() {} + +func (x *Provisioner) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Provisioner proto.InternalMessageInfo +// Deprecated: Use Provisioner.ProtoReflect.Descriptor instead. +func (*Provisioner) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{4} +} -func (m *Provisioner) GetBlsKey() []byte { - if m != nil { - return m.BlsKey +func (x *Provisioner) GetBlsKey() []byte { + if x != nil { + return x.BlsKey } return nil } -func (m *Provisioner) GetStakes() []*Stake { - if m != nil { - return m.Stakes +func (x *Provisioner) GetStakes() []*Stake { + if x != nil { + return x.Stakes } return nil } // List of transactions to be validated type ValidateStateTransitionRequest struct { - Calls []*ContractCallTx `protobuf:"bytes,1,rep,name=calls,proto3" json:"calls,omitempty"` - CurrentHeight uint64 `protobuf:"fixed64,2,opt,name=current_height,json=currentHeight,proto3" json:"current_height,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ValidateStateTransitionRequest) Reset() { *m = ValidateStateTransitionRequest{} } -func (m *ValidateStateTransitionRequest) String() string { return proto.CompactTextString(m) } -func (*ValidateStateTransitionRequest) ProtoMessage() {} -func (*ValidateStateTransitionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{5} -} -func (m *ValidateStateTransitionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidateStateTransitionRequest.Unmarshal(m, b) + Calls []*ContractCallTx `protobuf:"bytes,1,rep,name=calls,proto3" json:"calls,omitempty"` + CurrentHeight uint64 `protobuf:"fixed64,2,opt,name=current_height,json=currentHeight,proto3" json:"current_height,omitempty"` } -func (m *ValidateStateTransitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidateStateTransitionRequest.Marshal(b, m, deterministic) -} -func (m *ValidateStateTransitionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidateStateTransitionRequest.Merge(m, src) + +func (x *ValidateStateTransitionRequest) Reset() { + *x = ValidateStateTransitionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ValidateStateTransitionRequest) XXX_Size() int { - return xxx_messageInfo_ValidateStateTransitionRequest.Size(m) + +func (x *ValidateStateTransitionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ValidateStateTransitionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidateStateTransitionRequest.DiscardUnknown(m) + +func (*ValidateStateTransitionRequest) ProtoMessage() {} + +func (x *ValidateStateTransitionRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ValidateStateTransitionRequest proto.InternalMessageInfo +// Deprecated: Use ValidateStateTransitionRequest.ProtoReflect.Descriptor instead. +func (*ValidateStateTransitionRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{5} +} -func (m *ValidateStateTransitionRequest) GetCalls() []*ContractCallTx { - if m != nil { - return m.Calls +func (x *ValidateStateTransitionRequest) GetCalls() []*ContractCallTx { + if x != nil { + return x.Calls } return nil } -func (m *ValidateStateTransitionRequest) GetCurrentHeight() uint64 { - if m != nil { - return m.CurrentHeight +func (x *ValidateStateTransitionRequest) GetCurrentHeight() uint64 { + if x != nil { + return x.CurrentHeight } return 0 } type ContractCallTx struct { - // Types that are valid to be assigned to ContractCall: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to ContractCall: // *ContractCallTx_Tx // *ContractCallTx_Withdraw // *ContractCallTx_Stake @@ -279,74 +340,41 @@ type ContractCallTx struct { // *ContractCallTx_Distribute // *ContractCallTx_WithdrawStake // *ContractCallTx_WithdrawBid - ContractCall isContractCallTx_ContractCall `protobuf_oneof:"contract_call"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ContractCall isContractCallTx_ContractCall `protobuf_oneof:"contract_call"` } -func (m *ContractCallTx) Reset() { *m = ContractCallTx{} } -func (m *ContractCallTx) String() string { return proto.CompactTextString(m) } -func (*ContractCallTx) ProtoMessage() {} -func (*ContractCallTx) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{6} -} -func (m *ContractCallTx) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContractCallTx.Unmarshal(m, b) -} -func (m *ContractCallTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContractCallTx.Marshal(b, m, deterministic) -} -func (m *ContractCallTx) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContractCallTx.Merge(m, src) -} -func (m *ContractCallTx) XXX_Size() int { - return xxx_messageInfo_ContractCallTx.Size(m) +func (x *ContractCallTx) Reset() { + *x = ContractCallTx{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContractCallTx) XXX_DiscardUnknown() { - xxx_messageInfo_ContractCallTx.DiscardUnknown(m) + +func (x *ContractCallTx) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ContractCallTx proto.InternalMessageInfo +func (*ContractCallTx) ProtoMessage() {} -type isContractCallTx_ContractCall interface { - isContractCallTx_ContractCall() +func (x *ContractCallTx) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type ContractCallTx_Tx struct { - Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3,oneof" json:"tx,omitempty"` -} -type ContractCallTx_Withdraw struct { - Withdraw *WithdrawFeesTransaction `protobuf:"bytes,2,opt,name=withdraw,proto3,oneof" json:"withdraw,omitempty"` -} -type ContractCallTx_Stake struct { - Stake *StakeTransaction `protobuf:"bytes,3,opt,name=stake,proto3,oneof" json:"stake,omitempty"` -} -type ContractCallTx_Bid struct { - Bid *BidTransaction `protobuf:"bytes,4,opt,name=bid,proto3,oneof" json:"bid,omitempty"` -} -type ContractCallTx_Slash struct { - Slash *SlashTransaction `protobuf:"bytes,5,opt,name=slash,proto3,oneof" json:"slash,omitempty"` -} -type ContractCallTx_Distribute struct { - Distribute *DistributeTransaction `protobuf:"bytes,6,opt,name=distribute,proto3,oneof" json:"distribute,omitempty"` -} -type ContractCallTx_WithdrawStake struct { - WithdrawStake *WithdrawStakeTransaction `protobuf:"bytes,7,opt,name=withdraw_stake,json=withdrawStake,proto3,oneof" json:"withdraw_stake,omitempty"` -} -type ContractCallTx_WithdrawBid struct { - WithdrawBid *WithdrawBidTransaction `protobuf:"bytes,8,opt,name=withdraw_bid,json=withdrawBid,proto3,oneof" json:"withdraw_bid,omitempty"` +// Deprecated: Use ContractCallTx.ProtoReflect.Descriptor instead. +func (*ContractCallTx) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{6} } -func (*ContractCallTx_Tx) isContractCallTx_ContractCall() {} -func (*ContractCallTx_Withdraw) isContractCallTx_ContractCall() {} -func (*ContractCallTx_Stake) isContractCallTx_ContractCall() {} -func (*ContractCallTx_Bid) isContractCallTx_ContractCall() {} -func (*ContractCallTx_Slash) isContractCallTx_ContractCall() {} -func (*ContractCallTx_Distribute) isContractCallTx_ContractCall() {} -func (*ContractCallTx_WithdrawStake) isContractCallTx_ContractCall() {} -func (*ContractCallTx_WithdrawBid) isContractCallTx_ContractCall() {} - func (m *ContractCallTx) GetContractCall() isContractCallTx_ContractCall { if m != nil { return m.ContractCall @@ -354,1397 +382,1646 @@ func (m *ContractCallTx) GetContractCall() isContractCallTx_ContractCall { return nil } -func (m *ContractCallTx) GetTx() *Transaction { - if x, ok := m.GetContractCall().(*ContractCallTx_Tx); ok { +func (x *ContractCallTx) GetTx() *Transaction { + if x, ok := x.GetContractCall().(*ContractCallTx_Tx); ok { return x.Tx } return nil } -func (m *ContractCallTx) GetWithdraw() *WithdrawFeesTransaction { - if x, ok := m.GetContractCall().(*ContractCallTx_Withdraw); ok { +func (x *ContractCallTx) GetWithdraw() *WithdrawFeesTransaction { + if x, ok := x.GetContractCall().(*ContractCallTx_Withdraw); ok { return x.Withdraw } return nil } -func (m *ContractCallTx) GetStake() *StakeTransaction { - if x, ok := m.GetContractCall().(*ContractCallTx_Stake); ok { +func (x *ContractCallTx) GetStake() *StakeTransaction { + if x, ok := x.GetContractCall().(*ContractCallTx_Stake); ok { return x.Stake } return nil } -func (m *ContractCallTx) GetBid() *BidTransaction { - if x, ok := m.GetContractCall().(*ContractCallTx_Bid); ok { +func (x *ContractCallTx) GetBid() *BidTransaction { + if x, ok := x.GetContractCall().(*ContractCallTx_Bid); ok { return x.Bid } return nil } -func (m *ContractCallTx) GetSlash() *SlashTransaction { - if x, ok := m.GetContractCall().(*ContractCallTx_Slash); ok { +func (x *ContractCallTx) GetSlash() *SlashTransaction { + if x, ok := x.GetContractCall().(*ContractCallTx_Slash); ok { return x.Slash } return nil } -func (m *ContractCallTx) GetDistribute() *DistributeTransaction { - if x, ok := m.GetContractCall().(*ContractCallTx_Distribute); ok { +func (x *ContractCallTx) GetDistribute() *DistributeTransaction { + if x, ok := x.GetContractCall().(*ContractCallTx_Distribute); ok { return x.Distribute } return nil } -func (m *ContractCallTx) GetWithdrawStake() *WithdrawStakeTransaction { - if x, ok := m.GetContractCall().(*ContractCallTx_WithdrawStake); ok { +func (x *ContractCallTx) GetWithdrawStake() *WithdrawStakeTransaction { + if x, ok := x.GetContractCall().(*ContractCallTx_WithdrawStake); ok { return x.WithdrawStake } return nil } -func (m *ContractCallTx) GetWithdrawBid() *WithdrawBidTransaction { - if x, ok := m.GetContractCall().(*ContractCallTx_WithdrawBid); ok { +func (x *ContractCallTx) GetWithdrawBid() *WithdrawBidTransaction { + if x, ok := x.GetContractCall().(*ContractCallTx_WithdrawBid); ok { return x.WithdrawBid } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ContractCallTx) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ContractCallTx_Tx)(nil), - (*ContractCallTx_Withdraw)(nil), - (*ContractCallTx_Stake)(nil), - (*ContractCallTx_Bid)(nil), - (*ContractCallTx_Slash)(nil), - (*ContractCallTx_Distribute)(nil), - (*ContractCallTx_WithdrawStake)(nil), - (*ContractCallTx_WithdrawBid)(nil), - } +type isContractCallTx_ContractCall interface { + isContractCallTx_ContractCall() } -// Used to request the Slash of a stake -type SlashTransactionRequest struct { - BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` - Step uint32 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"` - Round uint64 `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"` - FirstMsg []byte `protobuf:"bytes,4,opt,name=first_msg,json=firstMsg,proto3" json:"first_msg,omitempty"` - FirstSig []byte `protobuf:"bytes,5,opt,name=first_sig,json=firstSig,proto3" json:"first_sig,omitempty"` - SecondMsg []byte `protobuf:"bytes,6,opt,name=second_msg,json=secondMsg,proto3" json:"second_msg,omitempty"` - SecondSig []byte `protobuf:"bytes,7,opt,name=second_sig,json=secondSig,proto3" json:"second_sig,omitempty"` - Tx *NewTransactionRequest `protobuf:"bytes,8,opt,name=tx,proto3" json:"tx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SlashTransactionRequest) Reset() { *m = SlashTransactionRequest{} } -func (m *SlashTransactionRequest) String() string { return proto.CompactTextString(m) } -func (*SlashTransactionRequest) ProtoMessage() {} -func (*SlashTransactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{7} +type ContractCallTx_Tx struct { + Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3,oneof"` +} + +type ContractCallTx_Withdraw struct { + Withdraw *WithdrawFeesTransaction `protobuf:"bytes,2,opt,name=withdraw,proto3,oneof"` +} + +type ContractCallTx_Stake struct { + Stake *StakeTransaction `protobuf:"bytes,3,opt,name=stake,proto3,oneof"` } -func (m *SlashTransactionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SlashTransactionRequest.Unmarshal(m, b) + +type ContractCallTx_Bid struct { + Bid *BidTransaction `protobuf:"bytes,4,opt,name=bid,proto3,oneof"` } -func (m *SlashTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SlashTransactionRequest.Marshal(b, m, deterministic) + +type ContractCallTx_Slash struct { + Slash *SlashTransaction `protobuf:"bytes,5,opt,name=slash,proto3,oneof"` } -func (m *SlashTransactionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SlashTransactionRequest.Merge(m, src) + +type ContractCallTx_Distribute struct { + Distribute *DistributeTransaction `protobuf:"bytes,6,opt,name=distribute,proto3,oneof"` } -func (m *SlashTransactionRequest) XXX_Size() int { - return xxx_messageInfo_SlashTransactionRequest.Size(m) + +type ContractCallTx_WithdrawStake struct { + WithdrawStake *WithdrawStakeTransaction `protobuf:"bytes,7,opt,name=withdraw_stake,json=withdrawStake,proto3,oneof"` } -func (m *SlashTransactionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SlashTransactionRequest.DiscardUnknown(m) + +type ContractCallTx_WithdrawBid struct { + WithdrawBid *WithdrawBidTransaction `protobuf:"bytes,8,opt,name=withdraw_bid,json=withdrawBid,proto3,oneof"` } -var xxx_messageInfo_SlashTransactionRequest proto.InternalMessageInfo +func (*ContractCallTx_Tx) isContractCallTx_ContractCall() {} -func (m *SlashTransactionRequest) GetBlsKey() []byte { - if m != nil { - return m.BlsKey +func (*ContractCallTx_Withdraw) isContractCallTx_ContractCall() {} + +func (*ContractCallTx_Stake) isContractCallTx_ContractCall() {} + +func (*ContractCallTx_Bid) isContractCallTx_ContractCall() {} + +func (*ContractCallTx_Slash) isContractCallTx_ContractCall() {} + +func (*ContractCallTx_Distribute) isContractCallTx_ContractCall() {} + +func (*ContractCallTx_WithdrawStake) isContractCallTx_ContractCall() {} + +func (*ContractCallTx_WithdrawBid) isContractCallTx_ContractCall() {} + +// Used to request the Slash of a stake +type SlashTransactionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` + Step uint32 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"` + Round uint64 `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"` + FirstMsg []byte `protobuf:"bytes,4,opt,name=first_msg,json=firstMsg,proto3" json:"first_msg,omitempty"` + FirstSig []byte `protobuf:"bytes,5,opt,name=first_sig,json=firstSig,proto3" json:"first_sig,omitempty"` + SecondMsg []byte `protobuf:"bytes,6,opt,name=second_msg,json=secondMsg,proto3" json:"second_msg,omitempty"` + SecondSig []byte `protobuf:"bytes,7,opt,name=second_sig,json=secondSig,proto3" json:"second_sig,omitempty"` + Tx *NewTransactionRequest `protobuf:"bytes,8,opt,name=tx,proto3" json:"tx,omitempty"` +} + +func (x *SlashTransactionRequest) Reset() { + *x = SlashTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SlashTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SlashTransactionRequest) ProtoMessage() {} + +func (x *SlashTransactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SlashTransactionRequest.ProtoReflect.Descriptor instead. +func (*SlashTransactionRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{7} +} + +func (x *SlashTransactionRequest) GetBlsKey() []byte { + if x != nil { + return x.BlsKey } return nil } -func (m *SlashTransactionRequest) GetStep() uint32 { - if m != nil { - return m.Step +func (x *SlashTransactionRequest) GetStep() uint32 { + if x != nil { + return x.Step } return 0 } -func (m *SlashTransactionRequest) GetRound() uint64 { - if m != nil { - return m.Round +func (x *SlashTransactionRequest) GetRound() uint64 { + if x != nil { + return x.Round } return 0 } -func (m *SlashTransactionRequest) GetFirstMsg() []byte { - if m != nil { - return m.FirstMsg +func (x *SlashTransactionRequest) GetFirstMsg() []byte { + if x != nil { + return x.FirstMsg } return nil } -func (m *SlashTransactionRequest) GetFirstSig() []byte { - if m != nil { - return m.FirstSig +func (x *SlashTransactionRequest) GetFirstSig() []byte { + if x != nil { + return x.FirstSig } return nil } -func (m *SlashTransactionRequest) GetSecondMsg() []byte { - if m != nil { - return m.SecondMsg +func (x *SlashTransactionRequest) GetSecondMsg() []byte { + if x != nil { + return x.SecondMsg } return nil } -func (m *SlashTransactionRequest) GetSecondSig() []byte { - if m != nil { - return m.SecondSig +func (x *SlashTransactionRequest) GetSecondSig() []byte { + if x != nil { + return x.SecondSig } return nil } -func (m *SlashTransactionRequest) GetTx() *NewTransactionRequest { - if m != nil { - return m.Tx +func (x *SlashTransactionRequest) GetTx() *NewTransactionRequest { + if x != nil { + return x.Tx } return nil } // Used to request the withdrawal of fees from a Provisioner type WithdrawFeesTransactionRequest struct { - BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` - Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` - Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` - Tx *NewTransactionRequest `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WithdrawFeesTransactionRequest) Reset() { *m = WithdrawFeesTransactionRequest{} } -func (m *WithdrawFeesTransactionRequest) String() string { return proto.CompactTextString(m) } -func (*WithdrawFeesTransactionRequest) ProtoMessage() {} -func (*WithdrawFeesTransactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{8} -} -func (m *WithdrawFeesTransactionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WithdrawFeesTransactionRequest.Unmarshal(m, b) -} -func (m *WithdrawFeesTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WithdrawFeesTransactionRequest.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` + Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` + Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` + Tx *NewTransactionRequest `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` } -func (m *WithdrawFeesTransactionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WithdrawFeesTransactionRequest.Merge(m, src) + +func (x *WithdrawFeesTransactionRequest) Reset() { + *x = WithdrawFeesTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WithdrawFeesTransactionRequest) XXX_Size() int { - return xxx_messageInfo_WithdrawFeesTransactionRequest.Size(m) + +func (x *WithdrawFeesTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WithdrawFeesTransactionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WithdrawFeesTransactionRequest.DiscardUnknown(m) + +func (*WithdrawFeesTransactionRequest) ProtoMessage() {} + +func (x *WithdrawFeesTransactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WithdrawFeesTransactionRequest proto.InternalMessageInfo +// Deprecated: Use WithdrawFeesTransactionRequest.ProtoReflect.Descriptor instead. +func (*WithdrawFeesTransactionRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{8} +} -func (m *WithdrawFeesTransactionRequest) GetBlsKey() []byte { - if m != nil { - return m.BlsKey +func (x *WithdrawFeesTransactionRequest) GetBlsKey() []byte { + if x != nil { + return x.BlsKey } return nil } -func (m *WithdrawFeesTransactionRequest) GetSig() []byte { - if m != nil { - return m.Sig +func (x *WithdrawFeesTransactionRequest) GetSig() []byte { + if x != nil { + return x.Sig } return nil } -func (m *WithdrawFeesTransactionRequest) GetMsg() []byte { - if m != nil { - return m.Msg +func (x *WithdrawFeesTransactionRequest) GetMsg() []byte { + if x != nil { + return x.Msg } return nil } -func (m *WithdrawFeesTransactionRequest) GetTx() *NewTransactionRequest { - if m != nil { - return m.Tx +func (x *WithdrawFeesTransactionRequest) GetTx() *NewTransactionRequest { + if x != nil { + return x.Tx } return nil } // Used to request the withdrawal of a Stake type WithdrawStakeTransactionRequest struct { - BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` - Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` - Tx *NewTransactionRequest `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WithdrawStakeTransactionRequest) Reset() { *m = WithdrawStakeTransactionRequest{} } -func (m *WithdrawStakeTransactionRequest) String() string { return proto.CompactTextString(m) } -func (*WithdrawStakeTransactionRequest) ProtoMessage() {} -func (*WithdrawStakeTransactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{9} + BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` + Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` + Tx *NewTransactionRequest `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` } -func (m *WithdrawStakeTransactionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WithdrawStakeTransactionRequest.Unmarshal(m, b) -} -func (m *WithdrawStakeTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WithdrawStakeTransactionRequest.Marshal(b, m, deterministic) -} -func (m *WithdrawStakeTransactionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WithdrawStakeTransactionRequest.Merge(m, src) + +func (x *WithdrawStakeTransactionRequest) Reset() { + *x = WithdrawStakeTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WithdrawStakeTransactionRequest) XXX_Size() int { - return xxx_messageInfo_WithdrawStakeTransactionRequest.Size(m) + +func (x *WithdrawStakeTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WithdrawStakeTransactionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WithdrawStakeTransactionRequest.DiscardUnknown(m) + +func (*WithdrawStakeTransactionRequest) ProtoMessage() {} + +func (x *WithdrawStakeTransactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WithdrawStakeTransactionRequest proto.InternalMessageInfo +// Deprecated: Use WithdrawStakeTransactionRequest.ProtoReflect.Descriptor instead. +func (*WithdrawStakeTransactionRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{9} +} -func (m *WithdrawStakeTransactionRequest) GetBlsKey() []byte { - if m != nil { - return m.BlsKey +func (x *WithdrawStakeTransactionRequest) GetBlsKey() []byte { + if x != nil { + return x.BlsKey } return nil } -func (m *WithdrawStakeTransactionRequest) GetSig() []byte { - if m != nil { - return m.Sig +func (x *WithdrawStakeTransactionRequest) GetSig() []byte { + if x != nil { + return x.Sig } return nil } -func (m *WithdrawStakeTransactionRequest) GetTx() *NewTransactionRequest { - if m != nil { - return m.Tx +func (x *WithdrawStakeTransactionRequest) GetTx() *NewTransactionRequest { + if x != nil { + return x.Tx } return nil } // Used to request the withdrawal of a Bid type WithdrawBidTransactionRequest struct { - Sig []byte `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"` - EdPk []byte `protobuf:"bytes,2,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"` - Tx *NewTransactionRequest `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *WithdrawBidTransactionRequest) Reset() { *m = WithdrawBidTransactionRequest{} } -func (m *WithdrawBidTransactionRequest) String() string { return proto.CompactTextString(m) } -func (*WithdrawBidTransactionRequest) ProtoMessage() {} -func (*WithdrawBidTransactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{10} + Sig []byte `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"` + EdPk []byte `protobuf:"bytes,2,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"` + Tx *NewTransactionRequest `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` } -func (m *WithdrawBidTransactionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WithdrawBidTransactionRequest.Unmarshal(m, b) -} -func (m *WithdrawBidTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WithdrawBidTransactionRequest.Marshal(b, m, deterministic) -} -func (m *WithdrawBidTransactionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WithdrawBidTransactionRequest.Merge(m, src) + +func (x *WithdrawBidTransactionRequest) Reset() { + *x = WithdrawBidTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *WithdrawBidTransactionRequest) XXX_Size() int { - return xxx_messageInfo_WithdrawBidTransactionRequest.Size(m) + +func (x *WithdrawBidTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WithdrawBidTransactionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WithdrawBidTransactionRequest.DiscardUnknown(m) + +func (*WithdrawBidTransactionRequest) ProtoMessage() {} + +func (x *WithdrawBidTransactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WithdrawBidTransactionRequest proto.InternalMessageInfo +// Deprecated: Use WithdrawBidTransactionRequest.ProtoReflect.Descriptor instead. +func (*WithdrawBidTransactionRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{10} +} -func (m *WithdrawBidTransactionRequest) GetSig() []byte { - if m != nil { - return m.Sig +func (x *WithdrawBidTransactionRequest) GetSig() []byte { + if x != nil { + return x.Sig } return nil } -func (m *WithdrawBidTransactionRequest) GetEdPk() []byte { - if m != nil { - return m.EdPk +func (x *WithdrawBidTransactionRequest) GetEdPk() []byte { + if x != nil { + return x.EdPk } return nil } -func (m *WithdrawBidTransactionRequest) GetTx() *NewTransactionRequest { - if m != nil { - return m.Tx +func (x *WithdrawBidTransactionRequest) GetTx() *NewTransactionRequest { + if x != nil { + return x.Tx } return nil } // Used to request the creation of a Stake type StakeTransactionRequest struct { - BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` - ExpirationHeight uint64 `protobuf:"fixed64,2,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"` - Tx *NewTransactionRequest `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StakeTransactionRequest) Reset() { *m = StakeTransactionRequest{} } -func (m *StakeTransactionRequest) String() string { return proto.CompactTextString(m) } -func (*StakeTransactionRequest) ProtoMessage() {} -func (*StakeTransactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{11} + BlsKey []byte `protobuf:"bytes,1,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"` + ExpirationHeight uint64 `protobuf:"fixed64,2,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"` + Tx *NewTransactionRequest `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` } -func (m *StakeTransactionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StakeTransactionRequest.Unmarshal(m, b) -} -func (m *StakeTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StakeTransactionRequest.Marshal(b, m, deterministic) -} -func (m *StakeTransactionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StakeTransactionRequest.Merge(m, src) + +func (x *StakeTransactionRequest) Reset() { + *x = StakeTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StakeTransactionRequest) XXX_Size() int { - return xxx_messageInfo_StakeTransactionRequest.Size(m) + +func (x *StakeTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StakeTransactionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StakeTransactionRequest.DiscardUnknown(m) + +func (*StakeTransactionRequest) ProtoMessage() {} + +func (x *StakeTransactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StakeTransactionRequest proto.InternalMessageInfo +// Deprecated: Use StakeTransactionRequest.ProtoReflect.Descriptor instead. +func (*StakeTransactionRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{11} +} -func (m *StakeTransactionRequest) GetBlsKey() []byte { - if m != nil { - return m.BlsKey +func (x *StakeTransactionRequest) GetBlsKey() []byte { + if x != nil { + return x.BlsKey } return nil } -func (m *StakeTransactionRequest) GetExpirationHeight() uint64 { - if m != nil { - return m.ExpirationHeight +func (x *StakeTransactionRequest) GetExpirationHeight() uint64 { + if x != nil { + return x.ExpirationHeight } return 0 } -func (m *StakeTransactionRequest) GetTx() *NewTransactionRequest { - if m != nil { - return m.Tx +func (x *StakeTransactionRequest) GetTx() *NewTransactionRequest { + if x != nil { + return x.Tx } return nil } // Used to Request the creation of a Bid type BidTransactionRequest struct { - K []byte `protobuf:"bytes,1,opt,name=K,proto3" json:"K,omitempty"` - EdPk []byte `protobuf:"bytes,2,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"` - Seed []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` - ExpirationHeight uint64 `protobuf:"fixed64,4,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"` - Tx *NewTransactionRequest `protobuf:"bytes,5,opt,name=tx,proto3" json:"tx,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BidTransactionRequest) Reset() { *m = BidTransactionRequest{} } -func (m *BidTransactionRequest) String() string { return proto.CompactTextString(m) } -func (*BidTransactionRequest) ProtoMessage() {} -func (*BidTransactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{12} -} -func (m *BidTransactionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BidTransactionRequest.Unmarshal(m, b) -} -func (m *BidTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BidTransactionRequest.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + K []byte `protobuf:"bytes,1,opt,name=K,proto3" json:"K,omitempty"` + EdPk []byte `protobuf:"bytes,2,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"` + Seed []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` + ExpirationHeight uint64 `protobuf:"fixed64,4,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"` + Tx *NewTransactionRequest `protobuf:"bytes,5,opt,name=tx,proto3" json:"tx,omitempty"` } -func (m *BidTransactionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BidTransactionRequest.Merge(m, src) + +func (x *BidTransactionRequest) Reset() { + *x = BidTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BidTransactionRequest) XXX_Size() int { - return xxx_messageInfo_BidTransactionRequest.Size(m) + +func (x *BidTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BidTransactionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BidTransactionRequest.DiscardUnknown(m) + +func (*BidTransactionRequest) ProtoMessage() {} + +func (x *BidTransactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BidTransactionRequest proto.InternalMessageInfo +// Deprecated: Use BidTransactionRequest.ProtoReflect.Descriptor instead. +func (*BidTransactionRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{12} +} -func (m *BidTransactionRequest) GetK() []byte { - if m != nil { - return m.K +func (x *BidTransactionRequest) GetK() []byte { + if x != nil { + return x.K } return nil } -func (m *BidTransactionRequest) GetEdPk() []byte { - if m != nil { - return m.EdPk +func (x *BidTransactionRequest) GetEdPk() []byte { + if x != nil { + return x.EdPk } return nil } -func (m *BidTransactionRequest) GetSeed() []byte { - if m != nil { - return m.Seed +func (x *BidTransactionRequest) GetSeed() []byte { + if x != nil { + return x.Seed } return nil } -func (m *BidTransactionRequest) GetExpirationHeight() uint64 { - if m != nil { - return m.ExpirationHeight +func (x *BidTransactionRequest) GetExpirationHeight() uint64 { + if x != nil { + return x.ExpirationHeight } return 0 } -func (m *BidTransactionRequest) GetTx() *NewTransactionRequest { - if m != nil { - return m.Tx +func (x *BidTransactionRequest) GetTx() *NewTransactionRequest { + if x != nil { + return x.Tx } return nil } type ValidateStateTransitionResponse struct { - SuccessfulCalls []int32 `protobuf:"varint,1,rep,packed,name=successful_calls,json=successfulCalls,proto3" json:"successful_calls,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ValidateStateTransitionResponse) Reset() { *m = ValidateStateTransitionResponse{} } -func (m *ValidateStateTransitionResponse) String() string { return proto.CompactTextString(m) } -func (*ValidateStateTransitionResponse) ProtoMessage() {} -func (*ValidateStateTransitionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{13} -} -func (m *ValidateStateTransitionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidateStateTransitionResponse.Unmarshal(m, b) + SuccessfulCalls []int32 `protobuf:"varint,1,rep,packed,name=successful_calls,json=successfulCalls,proto3" json:"successful_calls,omitempty"` } -func (m *ValidateStateTransitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidateStateTransitionResponse.Marshal(b, m, deterministic) -} -func (m *ValidateStateTransitionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidateStateTransitionResponse.Merge(m, src) + +func (x *ValidateStateTransitionResponse) Reset() { + *x = ValidateStateTransitionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ValidateStateTransitionResponse) XXX_Size() int { - return xxx_messageInfo_ValidateStateTransitionResponse.Size(m) + +func (x *ValidateStateTransitionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ValidateStateTransitionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ValidateStateTransitionResponse.DiscardUnknown(m) + +func (*ValidateStateTransitionResponse) ProtoMessage() {} + +func (x *ValidateStateTransitionResponse) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ValidateStateTransitionResponse proto.InternalMessageInfo +// Deprecated: Use ValidateStateTransitionResponse.ProtoReflect.Descriptor instead. +func (*ValidateStateTransitionResponse) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{13} +} -func (m *ValidateStateTransitionResponse) GetSuccessfulCalls() []int32 { - if m != nil { - return m.SuccessfulCalls +func (x *ValidateStateTransitionResponse) GetSuccessfulCalls() []int32 { + if x != nil { + return x.SuccessfulCalls } return nil } type ExecuteStateTransitionRequest struct { - Height uint64 `protobuf:"fixed64,1,opt,name=height,proto3" json:"height,omitempty"` - Calls []*ContractCallTx `protobuf:"bytes,2,rep,name=calls,proto3" json:"calls,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ExecuteStateTransitionRequest) Reset() { *m = ExecuteStateTransitionRequest{} } -func (m *ExecuteStateTransitionRequest) String() string { return proto.CompactTextString(m) } -func (*ExecuteStateTransitionRequest) ProtoMessage() {} -func (*ExecuteStateTransitionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{14} + Height uint64 `protobuf:"fixed64,1,opt,name=height,proto3" json:"height,omitempty"` + Calls []*ContractCallTx `protobuf:"bytes,2,rep,name=calls,proto3" json:"calls,omitempty"` } -func (m *ExecuteStateTransitionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecuteStateTransitionRequest.Unmarshal(m, b) -} -func (m *ExecuteStateTransitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecuteStateTransitionRequest.Marshal(b, m, deterministic) -} -func (m *ExecuteStateTransitionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecuteStateTransitionRequest.Merge(m, src) + +func (x *ExecuteStateTransitionRequest) Reset() { + *x = ExecuteStateTransitionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ExecuteStateTransitionRequest) XXX_Size() int { - return xxx_messageInfo_ExecuteStateTransitionRequest.Size(m) + +func (x *ExecuteStateTransitionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExecuteStateTransitionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExecuteStateTransitionRequest.DiscardUnknown(m) + +func (*ExecuteStateTransitionRequest) ProtoMessage() {} + +func (x *ExecuteStateTransitionRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ExecuteStateTransitionRequest proto.InternalMessageInfo +// Deprecated: Use ExecuteStateTransitionRequest.ProtoReflect.Descriptor instead. +func (*ExecuteStateTransitionRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{14} +} -func (m *ExecuteStateTransitionRequest) GetHeight() uint64 { - if m != nil { - return m.Height +func (x *ExecuteStateTransitionRequest) GetHeight() uint64 { + if x != nil { + return x.Height } return 0 } -func (m *ExecuteStateTransitionRequest) GetCalls() []*ContractCallTx { - if m != nil { - return m.Calls +func (x *ExecuteStateTransitionRequest) GetCalls() []*ContractCallTx { + if x != nil { + return x.Calls } return nil } type ExecuteStateTransitionResponse struct { - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - Committee []*Provisioner `protobuf:"bytes,2,rep,name=committee,proto3" json:"committee,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ExecuteStateTransitionResponse) Reset() { *m = ExecuteStateTransitionResponse{} } -func (m *ExecuteStateTransitionResponse) String() string { return proto.CompactTextString(m) } -func (*ExecuteStateTransitionResponse) ProtoMessage() {} -func (*ExecuteStateTransitionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{15} -} -func (m *ExecuteStateTransitionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecuteStateTransitionResponse.Unmarshal(m, b) + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Committee []*Provisioner `protobuf:"bytes,2,rep,name=committee,proto3" json:"committee,omitempty"` } -func (m *ExecuteStateTransitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecuteStateTransitionResponse.Marshal(b, m, deterministic) -} -func (m *ExecuteStateTransitionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecuteStateTransitionResponse.Merge(m, src) + +func (x *ExecuteStateTransitionResponse) Reset() { + *x = ExecuteStateTransitionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ExecuteStateTransitionResponse) XXX_Size() int { - return xxx_messageInfo_ExecuteStateTransitionResponse.Size(m) + +func (x *ExecuteStateTransitionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExecuteStateTransitionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExecuteStateTransitionResponse.DiscardUnknown(m) + +func (*ExecuteStateTransitionResponse) ProtoMessage() {} + +func (x *ExecuteStateTransitionResponse) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ExecuteStateTransitionResponse proto.InternalMessageInfo +// Deprecated: Use ExecuteStateTransitionResponse.ProtoReflect.Descriptor instead. +func (*ExecuteStateTransitionResponse) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{15} +} -func (m *ExecuteStateTransitionResponse) GetSuccess() bool { - if m != nil { - return m.Success +func (x *ExecuteStateTransitionResponse) GetSuccess() bool { + if x != nil { + return x.Success } return false } -func (m *ExecuteStateTransitionResponse) GetCommittee() []*Provisioner { - if m != nil { - return m.Committee +func (x *ExecuteStateTransitionResponse) GetCommittee() []*Provisioner { + if x != nil { + return x.Committee } return nil } type GenerateSecretKeyRequest struct { - B []byte `protobuf:"bytes,1,opt,name=b,proto3" json:"b,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GenerateSecretKeyRequest) Reset() { *m = GenerateSecretKeyRequest{} } -func (m *GenerateSecretKeyRequest) String() string { return proto.CompactTextString(m) } -func (*GenerateSecretKeyRequest) ProtoMessage() {} -func (*GenerateSecretKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{16} -} -func (m *GenerateSecretKeyRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateSecretKeyRequest.Unmarshal(m, b) -} -func (m *GenerateSecretKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateSecretKeyRequest.Marshal(b, m, deterministic) + B []byte `protobuf:"bytes,1,opt,name=b,proto3" json:"b,omitempty"` } -func (m *GenerateSecretKeyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateSecretKeyRequest.Merge(m, src) + +func (x *GenerateSecretKeyRequest) Reset() { + *x = GenerateSecretKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GenerateSecretKeyRequest) XXX_Size() int { - return xxx_messageInfo_GenerateSecretKeyRequest.Size(m) + +func (x *GenerateSecretKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GenerateSecretKeyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateSecretKeyRequest.DiscardUnknown(m) + +func (*GenerateSecretKeyRequest) ProtoMessage() {} + +func (x *GenerateSecretKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GenerateSecretKeyRequest proto.InternalMessageInfo +// Deprecated: Use GenerateSecretKeyRequest.ProtoReflect.Descriptor instead. +func (*GenerateSecretKeyRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{16} +} -func (m *GenerateSecretKeyRequest) GetB() []byte { - if m != nil { - return m.B +func (x *GenerateSecretKeyRequest) GetB() []byte { + if x != nil { + return x.B } return nil } type GenerateSecretKeyResponse struct { - Sk *SecretKey `protobuf:"bytes,1,opt,name=sk,proto3" json:"sk,omitempty"` - Vk *ViewKey `protobuf:"bytes,2,opt,name=vk,proto3" json:"vk,omitempty"` - Pk *PublicKey `protobuf:"bytes,3,opt,name=pk,proto3" json:"pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GenerateSecretKeyResponse) Reset() { *m = GenerateSecretKeyResponse{} } -func (m *GenerateSecretKeyResponse) String() string { return proto.CompactTextString(m) } -func (*GenerateSecretKeyResponse) ProtoMessage() {} -func (*GenerateSecretKeyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{17} -} -func (m *GenerateSecretKeyResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateSecretKeyResponse.Unmarshal(m, b) -} -func (m *GenerateSecretKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateSecretKeyResponse.Marshal(b, m, deterministic) + Sk *SecretKey `protobuf:"bytes,1,opt,name=sk,proto3" json:"sk,omitempty"` + Vk *ViewKey `protobuf:"bytes,2,opt,name=vk,proto3" json:"vk,omitempty"` + Pk *PublicKey `protobuf:"bytes,3,opt,name=pk,proto3" json:"pk,omitempty"` } -func (m *GenerateSecretKeyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateSecretKeyResponse.Merge(m, src) + +func (x *GenerateSecretKeyResponse) Reset() { + *x = GenerateSecretKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GenerateSecretKeyResponse) XXX_Size() int { - return xxx_messageInfo_GenerateSecretKeyResponse.Size(m) + +func (x *GenerateSecretKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GenerateSecretKeyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateSecretKeyResponse.DiscardUnknown(m) + +func (*GenerateSecretKeyResponse) ProtoMessage() {} + +func (x *GenerateSecretKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GenerateSecretKeyResponse proto.InternalMessageInfo +// Deprecated: Use GenerateSecretKeyResponse.ProtoReflect.Descriptor instead. +func (*GenerateSecretKeyResponse) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{17} +} -func (m *GenerateSecretKeyResponse) GetSk() *SecretKey { - if m != nil { - return m.Sk +func (x *GenerateSecretKeyResponse) GetSk() *SecretKey { + if x != nil { + return x.Sk } return nil } -func (m *GenerateSecretKeyResponse) GetVk() *ViewKey { - if m != nil { - return m.Vk +func (x *GenerateSecretKeyResponse) GetVk() *ViewKey { + if x != nil { + return x.Vk } return nil } -func (m *GenerateSecretKeyResponse) GetPk() *PublicKey { - if m != nil { - return m.Pk +func (x *GenerateSecretKeyResponse) GetPk() *PublicKey { + if x != nil { + return x.Pk } return nil } // Used for scanning unspent input set type OwnedNotesResponse struct { - Notes []*DecryptedNote `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *OwnedNotesResponse) Reset() { *m = OwnedNotesResponse{} } -func (m *OwnedNotesResponse) String() string { return proto.CompactTextString(m) } -func (*OwnedNotesResponse) ProtoMessage() {} -func (*OwnedNotesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{18} -} -func (m *OwnedNotesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OwnedNotesResponse.Unmarshal(m, b) -} -func (m *OwnedNotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OwnedNotesResponse.Marshal(b, m, deterministic) + Notes []*DecryptedNote `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"` } -func (m *OwnedNotesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OwnedNotesResponse.Merge(m, src) + +func (x *OwnedNotesResponse) Reset() { + *x = OwnedNotesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *OwnedNotesResponse) XXX_Size() int { - return xxx_messageInfo_OwnedNotesResponse.Size(m) + +func (x *OwnedNotesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OwnedNotesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_OwnedNotesResponse.DiscardUnknown(m) + +func (*OwnedNotesResponse) ProtoMessage() {} + +func (x *OwnedNotesResponse) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_OwnedNotesResponse proto.InternalMessageInfo +// Deprecated: Use OwnedNotesResponse.ProtoReflect.Descriptor instead. +func (*OwnedNotesResponse) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{18} +} -func (m *OwnedNotesResponse) GetNotes() []*DecryptedNote { - if m != nil { - return m.Notes +func (x *OwnedNotesResponse) GetNotes() []*DecryptedNote { + if x != nil { + return x.Notes } return nil } // Call from CLI directly type NewTransactionRequest struct { - Sk *SecretKey `protobuf:"bytes,1,opt,name=sk,proto3" json:"sk,omitempty"` - Recipient *PublicKey `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` - Value uint64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` - Fee uint64 `protobuf:"fixed64,4,opt,name=fee,proto3" json:"fee,omitempty"` - Obfuscated bool `protobuf:"varint,5,opt,name=obfuscated,proto3" json:"obfuscated,omitempty"` - Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NewTransactionRequest) Reset() { *m = NewTransactionRequest{} } -func (m *NewTransactionRequest) String() string { return proto.CompactTextString(m) } -func (*NewTransactionRequest) ProtoMessage() {} -func (*NewTransactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{19} -} -func (m *NewTransactionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NewTransactionRequest.Unmarshal(m, b) -} -func (m *NewTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NewTransactionRequest.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Sk *SecretKey `protobuf:"bytes,1,opt,name=sk,proto3" json:"sk,omitempty"` + Recipient *PublicKey `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` + Value uint64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` + Fee uint64 `protobuf:"fixed64,4,opt,name=fee,proto3" json:"fee,omitempty"` + Obfuscated bool `protobuf:"varint,5,opt,name=obfuscated,proto3" json:"obfuscated,omitempty"` + Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` } -func (m *NewTransactionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NewTransactionRequest.Merge(m, src) + +func (x *NewTransactionRequest) Reset() { + *x = NewTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *NewTransactionRequest) XXX_Size() int { - return xxx_messageInfo_NewTransactionRequest.Size(m) + +func (x *NewTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NewTransactionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NewTransactionRequest.DiscardUnknown(m) + +func (*NewTransactionRequest) ProtoMessage() {} + +func (x *NewTransactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_NewTransactionRequest proto.InternalMessageInfo +// Deprecated: Use NewTransactionRequest.ProtoReflect.Descriptor instead. +func (*NewTransactionRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{19} +} -func (m *NewTransactionRequest) GetSk() *SecretKey { - if m != nil { - return m.Sk +func (x *NewTransactionRequest) GetSk() *SecretKey { + if x != nil { + return x.Sk } return nil } -func (m *NewTransactionRequest) GetRecipient() *PublicKey { - if m != nil { - return m.Recipient +func (x *NewTransactionRequest) GetRecipient() *PublicKey { + if x != nil { + return x.Recipient } return nil } -func (m *NewTransactionRequest) GetValue() uint64 { - if m != nil { - return m.Value +func (x *NewTransactionRequest) GetValue() uint64 { + if x != nil { + return x.Value } return 0 } -func (m *NewTransactionRequest) GetFee() uint64 { - if m != nil { - return m.Fee +func (x *NewTransactionRequest) GetFee() uint64 { + if x != nil { + return x.Fee } return 0 } -func (m *NewTransactionRequest) GetObfuscated() bool { - if m != nil { - return m.Obfuscated +func (x *NewTransactionRequest) GetObfuscated() bool { + if x != nil { + return x.Obfuscated } return false } -func (m *NewTransactionRequest) GetData() []byte { - if m != nil { - return m.Data +func (x *NewTransactionRequest) GetData() []byte { + if x != nil { + return x.Data } return nil } type VerifyTransactionResponse struct { - Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *VerifyTransactionResponse) Reset() { *m = VerifyTransactionResponse{} } -func (m *VerifyTransactionResponse) String() string { return proto.CompactTextString(m) } -func (*VerifyTransactionResponse) ProtoMessage() {} -func (*VerifyTransactionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{20} -} -func (m *VerifyTransactionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VerifyTransactionResponse.Unmarshal(m, b) -} -func (m *VerifyTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VerifyTransactionResponse.Marshal(b, m, deterministic) + Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"` } -func (m *VerifyTransactionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyTransactionResponse.Merge(m, src) + +func (x *VerifyTransactionResponse) Reset() { + *x = VerifyTransactionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VerifyTransactionResponse) XXX_Size() int { - return xxx_messageInfo_VerifyTransactionResponse.Size(m) + +func (x *VerifyTransactionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VerifyTransactionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyTransactionResponse.DiscardUnknown(m) + +func (*VerifyTransactionResponse) ProtoMessage() {} + +func (x *VerifyTransactionResponse) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_VerifyTransactionResponse proto.InternalMessageInfo +// Deprecated: Use VerifyTransactionResponse.ProtoReflect.Descriptor instead. +func (*VerifyTransactionResponse) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{20} +} -func (m *VerifyTransactionResponse) GetVerified() bool { - if m != nil { - return m.Verified +func (x *VerifyTransactionResponse) GetVerified() bool { + if x != nil { + return x.Verified } return false } type KeysResponse struct { - Vk *ViewKey `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"` - Pk *PublicKey `protobuf:"bytes,2,opt,name=pk,proto3" json:"pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *KeysResponse) Reset() { *m = KeysResponse{} } -func (m *KeysResponse) String() string { return proto.CompactTextString(m) } -func (*KeysResponse) ProtoMessage() {} -func (*KeysResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{21} -} -func (m *KeysResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KeysResponse.Unmarshal(m, b) -} -func (m *KeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KeysResponse.Marshal(b, m, deterministic) + Vk *ViewKey `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"` + Pk *PublicKey `protobuf:"bytes,2,opt,name=pk,proto3" json:"pk,omitempty"` } -func (m *KeysResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeysResponse.Merge(m, src) + +func (x *KeysResponse) Reset() { + *x = KeysResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *KeysResponse) XXX_Size() int { - return xxx_messageInfo_KeysResponse.Size(m) + +func (x *KeysResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *KeysResponse) XXX_DiscardUnknown() { - xxx_messageInfo_KeysResponse.DiscardUnknown(m) + +func (*KeysResponse) ProtoMessage() {} + +func (x *KeysResponse) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_KeysResponse proto.InternalMessageInfo +// Deprecated: Use KeysResponse.ProtoReflect.Descriptor instead. +func (*KeysResponse) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{21} +} -func (m *KeysResponse) GetVk() *ViewKey { - if m != nil { - return m.Vk +func (x *KeysResponse) GetVk() *ViewKey { + if x != nil { + return x.Vk } return nil } -func (m *KeysResponse) GetPk() *PublicKey { - if m != nil { - return m.Pk +func (x *KeysResponse) GetPk() *PublicKey { + if x != nil { + return x.Pk } return nil } type GenerateScoreRequest struct { - D []byte `protobuf:"bytes,1,opt,name=d,proto3" json:"d,omitempty"` - K []byte `protobuf:"bytes,2,opt,name=k,proto3" json:"k,omitempty"` - Seed []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` - EdPk []byte `protobuf:"bytes,4,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"` - Round uint64 `protobuf:"fixed64,5,opt,name=round,proto3" json:"round,omitempty"` - Step uint32 `protobuf:"varint,6,opt,name=step,proto3" json:"step,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GenerateScoreRequest) Reset() { *m = GenerateScoreRequest{} } -func (m *GenerateScoreRequest) String() string { return proto.CompactTextString(m) } -func (*GenerateScoreRequest) ProtoMessage() {} -func (*GenerateScoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{22} -} -func (m *GenerateScoreRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateScoreRequest.Unmarshal(m, b) -} -func (m *GenerateScoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateScoreRequest.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + D []byte `protobuf:"bytes,1,opt,name=d,proto3" json:"d,omitempty"` + K []byte `protobuf:"bytes,2,opt,name=k,proto3" json:"k,omitempty"` + Seed []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` + EdPk []byte `protobuf:"bytes,4,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"` + Round uint64 `protobuf:"fixed64,5,opt,name=round,proto3" json:"round,omitempty"` + Step uint32 `protobuf:"varint,6,opt,name=step,proto3" json:"step,omitempty"` } -func (m *GenerateScoreRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateScoreRequest.Merge(m, src) + +func (x *GenerateScoreRequest) Reset() { + *x = GenerateScoreRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GenerateScoreRequest) XXX_Size() int { - return xxx_messageInfo_GenerateScoreRequest.Size(m) + +func (x *GenerateScoreRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GenerateScoreRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateScoreRequest.DiscardUnknown(m) + +func (*GenerateScoreRequest) ProtoMessage() {} + +func (x *GenerateScoreRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GenerateScoreRequest proto.InternalMessageInfo +// Deprecated: Use GenerateScoreRequest.ProtoReflect.Descriptor instead. +func (*GenerateScoreRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{22} +} -func (m *GenerateScoreRequest) GetD() []byte { - if m != nil { - return m.D +func (x *GenerateScoreRequest) GetD() []byte { + if x != nil { + return x.D } return nil } -func (m *GenerateScoreRequest) GetK() []byte { - if m != nil { - return m.K +func (x *GenerateScoreRequest) GetK() []byte { + if x != nil { + return x.K } return nil } -func (m *GenerateScoreRequest) GetSeed() []byte { - if m != nil { - return m.Seed +func (x *GenerateScoreRequest) GetSeed() []byte { + if x != nil { + return x.Seed } return nil } -func (m *GenerateScoreRequest) GetEdPk() []byte { - if m != nil { - return m.EdPk +func (x *GenerateScoreRequest) GetEdPk() []byte { + if x != nil { + return x.EdPk } return nil } -func (m *GenerateScoreRequest) GetRound() uint64 { - if m != nil { - return m.Round +func (x *GenerateScoreRequest) GetRound() uint64 { + if x != nil { + return x.Round } return 0 } -func (m *GenerateScoreRequest) GetStep() uint32 { - if m != nil { - return m.Step +func (x *GenerateScoreRequest) GetStep() uint32 { + if x != nil { + return x.Step } return 0 } type GenerateScoreResponse struct { - Proof []byte `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` - Score []byte `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"` - Seed []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` - Identity []byte `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GenerateScoreResponse) Reset() { *m = GenerateScoreResponse{} } -func (m *GenerateScoreResponse) String() string { return proto.CompactTextString(m) } -func (*GenerateScoreResponse) ProtoMessage() {} -func (*GenerateScoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{23} -} -func (m *GenerateScoreResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateScoreResponse.Unmarshal(m, b) -} -func (m *GenerateScoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateScoreResponse.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Proof []byte `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` + Score []byte `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"` + Seed []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` + Identity []byte `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *GenerateScoreResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateScoreResponse.Merge(m, src) + +func (x *GenerateScoreResponse) Reset() { + *x = GenerateScoreResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GenerateScoreResponse) XXX_Size() int { - return xxx_messageInfo_GenerateScoreResponse.Size(m) + +func (x *GenerateScoreResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GenerateScoreResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateScoreResponse.DiscardUnknown(m) + +func (*GenerateScoreResponse) ProtoMessage() {} + +func (x *GenerateScoreResponse) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GenerateScoreResponse proto.InternalMessageInfo +// Deprecated: Use GenerateScoreResponse.ProtoReflect.Descriptor instead. +func (*GenerateScoreResponse) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{23} +} -func (m *GenerateScoreResponse) GetProof() []byte { - if m != nil { - return m.Proof +func (x *GenerateScoreResponse) GetProof() []byte { + if x != nil { + return x.Proof } return nil } -func (m *GenerateScoreResponse) GetScore() []byte { - if m != nil { - return m.Score +func (x *GenerateScoreResponse) GetScore() []byte { + if x != nil { + return x.Score } return nil } -func (m *GenerateScoreResponse) GetSeed() []byte { - if m != nil { - return m.Seed +func (x *GenerateScoreResponse) GetSeed() []byte { + if x != nil { + return x.Seed } return nil } -func (m *GenerateScoreResponse) GetIdentity() []byte { - if m != nil { - return m.Identity +func (x *GenerateScoreResponse) GetIdentity() []byte { + if x != nil { + return x.Identity } return nil } type VerifyScoreRequest struct { - Proof []byte `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` - Score []byte `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"` - Seed []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` - Identity []byte `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` - Round uint64 `protobuf:"fixed64,5,opt,name=round,proto3" json:"round,omitempty"` - Step uint32 `protobuf:"varint,6,opt,name=step,proto3" json:"step,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VerifyScoreRequest) Reset() { *m = VerifyScoreRequest{} } -func (m *VerifyScoreRequest) String() string { return proto.CompactTextString(m) } -func (*VerifyScoreRequest) ProtoMessage() {} -func (*VerifyScoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{24} -} -func (m *VerifyScoreRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VerifyScoreRequest.Unmarshal(m, b) -} -func (m *VerifyScoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VerifyScoreRequest.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Proof []byte `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` + Score []byte `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"` + Seed []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` + Identity []byte `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` + Round uint64 `protobuf:"fixed64,5,opt,name=round,proto3" json:"round,omitempty"` + Step uint32 `protobuf:"varint,6,opt,name=step,proto3" json:"step,omitempty"` } -func (m *VerifyScoreRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyScoreRequest.Merge(m, src) + +func (x *VerifyScoreRequest) Reset() { + *x = VerifyScoreRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VerifyScoreRequest) XXX_Size() int { - return xxx_messageInfo_VerifyScoreRequest.Size(m) + +func (x *VerifyScoreRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VerifyScoreRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyScoreRequest.DiscardUnknown(m) + +func (*VerifyScoreRequest) ProtoMessage() {} + +func (x *VerifyScoreRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_VerifyScoreRequest proto.InternalMessageInfo +// Deprecated: Use VerifyScoreRequest.ProtoReflect.Descriptor instead. +func (*VerifyScoreRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{24} +} -func (m *VerifyScoreRequest) GetProof() []byte { - if m != nil { - return m.Proof +func (x *VerifyScoreRequest) GetProof() []byte { + if x != nil { + return x.Proof } return nil } -func (m *VerifyScoreRequest) GetScore() []byte { - if m != nil { - return m.Score +func (x *VerifyScoreRequest) GetScore() []byte { + if x != nil { + return x.Score } return nil } -func (m *VerifyScoreRequest) GetSeed() []byte { - if m != nil { - return m.Seed +func (x *VerifyScoreRequest) GetSeed() []byte { + if x != nil { + return x.Seed } return nil } -func (m *VerifyScoreRequest) GetIdentity() []byte { - if m != nil { - return m.Identity +func (x *VerifyScoreRequest) GetIdentity() []byte { + if x != nil { + return x.Identity } return nil } -func (m *VerifyScoreRequest) GetRound() uint64 { - if m != nil { - return m.Round +func (x *VerifyScoreRequest) GetRound() uint64 { + if x != nil { + return x.Round } return 0 } -func (m *VerifyScoreRequest) GetStep() uint32 { - if m != nil { - return m.Step +func (x *VerifyScoreRequest) GetStep() uint32 { + if x != nil { + return x.Step } return 0 } type VerifyScoreResponse struct { - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *VerifyScoreResponse) Reset() { *m = VerifyScoreResponse{} } -func (m *VerifyScoreResponse) String() string { return proto.CompactTextString(m) } -func (*VerifyScoreResponse) ProtoMessage() {} -func (*VerifyScoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{25} -} -func (m *VerifyScoreResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VerifyScoreResponse.Unmarshal(m, b) -} -func (m *VerifyScoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VerifyScoreResponse.Marshal(b, m, deterministic) + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` } -func (m *VerifyScoreResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyScoreResponse.Merge(m, src) + +func (x *VerifyScoreResponse) Reset() { + *x = VerifyScoreResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VerifyScoreResponse) XXX_Size() int { - return xxx_messageInfo_VerifyScoreResponse.Size(m) + +func (x *VerifyScoreResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VerifyScoreResponse) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyScoreResponse.DiscardUnknown(m) + +func (*VerifyScoreResponse) ProtoMessage() {} + +func (x *VerifyScoreResponse) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_VerifyScoreResponse proto.InternalMessageInfo +// Deprecated: Use VerifyScoreResponse.ProtoReflect.Descriptor instead. +func (*VerifyScoreResponse) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{25} +} -func (m *VerifyScoreResponse) GetSuccess() bool { - if m != nil { - return m.Success +func (x *VerifyScoreResponse) GetSuccess() bool { + if x != nil { + return x.Success } return false } type GetBalanceRequest struct { - Vk *ViewKey `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetBalanceRequest) Reset() { *m = GetBalanceRequest{} } -func (m *GetBalanceRequest) String() string { return proto.CompactTextString(m) } -func (*GetBalanceRequest) ProtoMessage() {} -func (*GetBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{26} -} -func (m *GetBalanceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBalanceRequest.Unmarshal(m, b) -} -func (m *GetBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBalanceRequest.Marshal(b, m, deterministic) + Vk *ViewKey `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"` } -func (m *GetBalanceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBalanceRequest.Merge(m, src) + +func (x *GetBalanceRequest) Reset() { + *x = GetBalanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBalanceRequest) XXX_Size() int { - return xxx_messageInfo_GetBalanceRequest.Size(m) + +func (x *GetBalanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetBalanceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetBalanceRequest.DiscardUnknown(m) + +func (*GetBalanceRequest) ProtoMessage() {} + +func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetBalanceRequest proto.InternalMessageInfo +// Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead. +func (*GetBalanceRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{26} +} -func (m *GetBalanceRequest) GetVk() *ViewKey { - if m != nil { - return m.Vk +func (x *GetBalanceRequest) GetVk() *ViewKey { + if x != nil { + return x.Vk } return nil } type GetBalanceResponse struct { - Balance uint64 `protobuf:"fixed64,1,opt,name=balance,proto3" json:"balance,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetBalanceResponse) Reset() { *m = GetBalanceResponse{} } -func (m *GetBalanceResponse) String() string { return proto.CompactTextString(m) } -func (*GetBalanceResponse) ProtoMessage() {} -func (*GetBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{27} -} -func (m *GetBalanceResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBalanceResponse.Unmarshal(m, b) + Balance uint64 `protobuf:"fixed64,1,opt,name=balance,proto3" json:"balance,omitempty"` } -func (m *GetBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBalanceResponse.Marshal(b, m, deterministic) -} -func (m *GetBalanceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBalanceResponse.Merge(m, src) + +func (x *GetBalanceResponse) Reset() { + *x = GetBalanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBalanceResponse) XXX_Size() int { - return xxx_messageInfo_GetBalanceResponse.Size(m) + +func (x *GetBalanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetBalanceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetBalanceResponse.DiscardUnknown(m) + +func (*GetBalanceResponse) ProtoMessage() {} + +func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetBalanceResponse proto.InternalMessageInfo +// Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead. +func (*GetBalanceResponse) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{27} +} -func (m *GetBalanceResponse) GetBalance() uint64 { - if m != nil { - return m.Balance +func (x *GetBalanceResponse) GetBalance() uint64 { + if x != nil { + return x.Balance } return 0 } type CalculateMempoolBalanceRequest struct { - Vk *ViewKey `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"` - Txs []*ContractCallTx `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CalculateMempoolBalanceRequest) Reset() { *m = CalculateMempoolBalanceRequest{} } -func (m *CalculateMempoolBalanceRequest) String() string { return proto.CompactTextString(m) } -func (*CalculateMempoolBalanceRequest) ProtoMessage() {} -func (*CalculateMempoolBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{28} -} -func (m *CalculateMempoolBalanceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CalculateMempoolBalanceRequest.Unmarshal(m, b) + Vk *ViewKey `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"` + Txs []*ContractCallTx `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"` } -func (m *CalculateMempoolBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CalculateMempoolBalanceRequest.Marshal(b, m, deterministic) -} -func (m *CalculateMempoolBalanceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CalculateMempoolBalanceRequest.Merge(m, src) + +func (x *CalculateMempoolBalanceRequest) Reset() { + *x = CalculateMempoolBalanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CalculateMempoolBalanceRequest) XXX_Size() int { - return xxx_messageInfo_CalculateMempoolBalanceRequest.Size(m) + +func (x *CalculateMempoolBalanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CalculateMempoolBalanceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CalculateMempoolBalanceRequest.DiscardUnknown(m) + +func (*CalculateMempoolBalanceRequest) ProtoMessage() {} + +func (x *CalculateMempoolBalanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CalculateMempoolBalanceRequest proto.InternalMessageInfo +// Deprecated: Use CalculateMempoolBalanceRequest.ProtoReflect.Descriptor instead. +func (*CalculateMempoolBalanceRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{28} +} -func (m *CalculateMempoolBalanceRequest) GetVk() *ViewKey { - if m != nil { - return m.Vk +func (x *CalculateMempoolBalanceRequest) GetVk() *ViewKey { + if x != nil { + return x.Vk } return nil } -func (m *CalculateMempoolBalanceRequest) GetTxs() []*ContractCallTx { - if m != nil { - return m.Txs +func (x *CalculateMempoolBalanceRequest) GetTxs() []*ContractCallTx { + if x != nil { + return x.Txs } return nil } type BinaryHashRequest struct { - Inputs [][]byte `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BinaryHashRequest) Reset() { *m = BinaryHashRequest{} } -func (m *BinaryHashRequest) String() string { return proto.CompactTextString(m) } -func (*BinaryHashRequest) ProtoMessage() {} -func (*BinaryHashRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{29} -} -func (m *BinaryHashRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BinaryHashRequest.Unmarshal(m, b) + Inputs [][]byte `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"` } -func (m *BinaryHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BinaryHashRequest.Marshal(b, m, deterministic) -} -func (m *BinaryHashRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BinaryHashRequest.Merge(m, src) + +func (x *BinaryHashRequest) Reset() { + *x = BinaryHashRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BinaryHashRequest) XXX_Size() int { - return xxx_messageInfo_BinaryHashRequest.Size(m) + +func (x *BinaryHashRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BinaryHashRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BinaryHashRequest.DiscardUnknown(m) + +func (*BinaryHashRequest) ProtoMessage() {} + +func (x *BinaryHashRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BinaryHashRequest proto.InternalMessageInfo +// Deprecated: Use BinaryHashRequest.ProtoReflect.Descriptor instead. +func (*BinaryHashRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{29} +} -func (m *BinaryHashRequest) GetInputs() [][]byte { - if m != nil { - return m.Inputs +func (x *BinaryHashRequest) GetInputs() [][]byte { + if x != nil { + return x.Inputs } return nil } type TransactionHashRequest struct { - Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TransactionHashRequest) Reset() { *m = TransactionHashRequest{} } -func (m *TransactionHashRequest) String() string { return proto.CompactTextString(m) } -func (*TransactionHashRequest) ProtoMessage() {} -func (*TransactionHashRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{30} + Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` } -func (m *TransactionHashRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TransactionHashRequest.Unmarshal(m, b) -} -func (m *TransactionHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TransactionHashRequest.Marshal(b, m, deterministic) -} -func (m *TransactionHashRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransactionHashRequest.Merge(m, src) + +func (x *TransactionHashRequest) Reset() { + *x = TransactionHashRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TransactionHashRequest) XXX_Size() int { - return xxx_messageInfo_TransactionHashRequest.Size(m) + +func (x *TransactionHashRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TransactionHashRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TransactionHashRequest.DiscardUnknown(m) + +func (*TransactionHashRequest) ProtoMessage() {} + +func (x *TransactionHashRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TransactionHashRequest proto.InternalMessageInfo +// Deprecated: Use TransactionHashRequest.ProtoReflect.Descriptor instead. +func (*TransactionHashRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{30} +} -func (m *TransactionHashRequest) GetTxs() []*Transaction { - if m != nil { - return m.Txs +func (x *TransactionHashRequest) GetTxs() []*Transaction { + if x != nil { + return x.Txs } return nil } // HashRequest carries the input for the hashing which can be an array of arrays of bytes or a transaction. type HashRequest struct { - // Types that are valid to be assigned to Request: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Request: // *HashRequest_BinInputs // *HashRequest_TxInputs - Request isHashRequest_Request `protobuf_oneof:"request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Request isHashRequest_Request `protobuf_oneof:"request"` } -func (m *HashRequest) Reset() { *m = HashRequest{} } -func (m *HashRequest) String() string { return proto.CompactTextString(m) } -func (*HashRequest) ProtoMessage() {} -func (*HashRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{31} -} -func (m *HashRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HashRequest.Unmarshal(m, b) -} -func (m *HashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HashRequest.Marshal(b, m, deterministic) -} -func (m *HashRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_HashRequest.Merge(m, src) -} -func (m *HashRequest) XXX_Size() int { - return xxx_messageInfo_HashRequest.Size(m) +func (x *HashRequest) Reset() { + *x = HashRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *HashRequest) XXX_DiscardUnknown() { - xxx_messageInfo_HashRequest.DiscardUnknown(m) + +func (x *HashRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_HashRequest proto.InternalMessageInfo +func (*HashRequest) ProtoMessage() {} -type isHashRequest_Request interface { - isHashRequest_Request() +func (x *HashRequest) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type HashRequest_BinInputs struct { - BinInputs *BinaryHashRequest `protobuf:"bytes,1,opt,name=bin_inputs,json=binInputs,proto3,oneof" json:"bin_inputs,omitempty"` -} -type HashRequest_TxInputs struct { - TxInputs *TransactionHashRequest `protobuf:"bytes,2,opt,name=tx_inputs,json=txInputs,proto3,oneof" json:"tx_inputs,omitempty"` +// Deprecated: Use HashRequest.ProtoReflect.Descriptor instead. +func (*HashRequest) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{31} } -func (*HashRequest_BinInputs) isHashRequest_Request() {} -func (*HashRequest_TxInputs) isHashRequest_Request() {} - func (m *HashRequest) GetRequest() isHashRequest_Request { if m != nil { return m.Request @@ -1752,223 +2029,1011 @@ func (m *HashRequest) GetRequest() isHashRequest_Request { return nil } -func (m *HashRequest) GetBinInputs() *BinaryHashRequest { - if x, ok := m.GetRequest().(*HashRequest_BinInputs); ok { +func (x *HashRequest) GetBinInputs() *BinaryHashRequest { + if x, ok := x.GetRequest().(*HashRequest_BinInputs); ok { return x.BinInputs } return nil } -func (m *HashRequest) GetTxInputs() *TransactionHashRequest { - if x, ok := m.GetRequest().(*HashRequest_TxInputs); ok { +func (x *HashRequest) GetTxInputs() *TransactionHashRequest { + if x, ok := x.GetRequest().(*HashRequest_TxInputs); ok { return x.TxInputs } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*HashRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*HashRequest_BinInputs)(nil), - (*HashRequest_TxInputs)(nil), - } +type isHashRequest_Request interface { + isHashRequest_Request() } -// HashResponse carries the scalar calculated by the hashing function -type HashResponse struct { - Hash *Scalar `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type HashRequest_BinInputs struct { + BinInputs *BinaryHashRequest `protobuf:"bytes,1,opt,name=bin_inputs,json=binInputs,proto3,oneof"` } -func (m *HashResponse) Reset() { *m = HashResponse{} } -func (m *HashResponse) String() string { return proto.CompactTextString(m) } -func (*HashResponse) ProtoMessage() {} -func (*HashResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_211ec4e18343b18f, []int{32} -} -func (m *HashResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HashResponse.Unmarshal(m, b) +type HashRequest_TxInputs struct { + TxInputs *TransactionHashRequest `protobuf:"bytes,2,opt,name=tx_inputs,json=txInputs,proto3,oneof"` } -func (m *HashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HashResponse.Marshal(b, m, deterministic) + +func (*HashRequest_BinInputs) isHashRequest_Request() {} + +func (*HashRequest_TxInputs) isHashRequest_Request() {} + +// HashResponse carries the scalar calculated by the hashing function +type HashResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hash *Scalar `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } -func (m *HashResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_HashResponse.Merge(m, src) + +func (x *HashResponse) Reset() { + *x = HashResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_rusk_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *HashResponse) XXX_Size() int { - return xxx_messageInfo_HashResponse.Size(m) + +func (x *HashResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HashResponse) XXX_DiscardUnknown() { - xxx_messageInfo_HashResponse.DiscardUnknown(m) + +func (*HashResponse) ProtoMessage() {} + +func (x *HashResponse) ProtoReflect() protoreflect.Message { + mi := &file_rusk_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_HashResponse proto.InternalMessageInfo +// Deprecated: Use HashResponse.ProtoReflect.Descriptor instead. +func (*HashResponse) Descriptor() ([]byte, []int) { + return file_rusk_proto_rawDescGZIP(), []int{32} +} + +func (x *HashResponse) GetHash() *Scalar { + if x != nil { + return x.Hash + } + return nil +} + +var File_rusk_proto protoreflect.FileDescriptor + +var file_rusk_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x72, 0x75, + 0x73, 0x6b, 0x1a, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x0a, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6e, 0x6f, 0x74, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x63, 0x6f, 0x6e, 0x73, + 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0d, 0x0a, 0x0b, 0x45, + 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x0e, 0x0a, 0x0c, 0x45, 0x63, + 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x0a, 0x07, 0x42, 0x69, + 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x69, 0x64, 0x5f, 0x6c, 0x69, 0x73, + 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x62, 0x69, 0x64, 0x4c, 0x69, 0x73, 0x74, + 0x22, 0x61, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x48, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6e, 0x64, 0x5f, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x22, 0x4b, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x62, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x6b, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x72, 0x75, + 0x73, 0x6b, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x73, + 0x22, 0x73, 0x0a, 0x1e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x05, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x54, 0x78, 0x52, 0x05, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x12, 0x25, + 0x0a, 0x0e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xd8, 0x03, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x54, 0x78, 0x12, 0x23, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x02, 0x74, 0x78, 0x12, 0x3b, 0x0a, + 0x08, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x46, + 0x65, 0x65, 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, + 0x52, 0x08, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x74, + 0x61, 0x6b, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, + 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x48, 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x28, 0x0a, 0x03, 0x62, 0x69, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, + 0x69, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, + 0x03, 0x62, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x6c, 0x61, 0x73, 0x68, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x6c, 0x61, 0x73, 0x68, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x05, 0x73, + 0x6c, 0x61, 0x73, 0x68, 0x12, 0x3d, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, + 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x5f, + 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x75, + 0x73, 0x6b, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0d, 0x77, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x41, 0x0a, 0x0c, + 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x5f, 0x62, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, + 0x61, 0x77, 0x42, 0x69, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x48, 0x00, 0x52, 0x0b, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x42, 0x69, 0x64, 0x42, + 0x0f, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x63, 0x61, 0x6c, 0x6c, + 0x22, 0x81, 0x02, 0x0a, 0x17, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, + 0x62, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, + 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, + 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, + 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x08, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x1b, 0x0a, 0x09, + 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x08, 0x66, 0x69, 0x72, 0x73, 0x74, 0x53, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, + 0x6f, 0x6e, 0x64, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, + 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x6f, + 0x6e, 0x64, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x53, 0x69, 0x67, 0x12, 0x2b, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4e, 0x65, 0x77, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x02, 0x74, 0x78, 0x22, 0x8a, 0x01, 0x0a, 0x1e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, + 0x77, 0x46, 0x65, 0x65, 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x62, 0x6c, 0x73, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x6c, 0x73, 0x4b, 0x65, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, + 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x03, 0x6d, 0x73, 0x67, 0x12, 0x2b, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4e, 0x65, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x02, 0x74, + 0x78, 0x22, 0x79, 0x0a, 0x1f, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x53, 0x74, 0x61, + 0x6b, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x62, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x73, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, + 0x2b, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x75, + 0x73, 0x6b, 0x2e, 0x4e, 0x65, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x02, 0x74, 0x78, 0x22, 0x73, 0x0a, 0x1d, + 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x42, 0x69, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, + 0x03, 0x73, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, + 0x13, 0x0a, 0x05, 0x65, 0x64, 0x5f, 0x70, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, + 0x65, 0x64, 0x50, 0x6b, 0x12, 0x2b, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4e, 0x65, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x02, 0x74, + 0x78, 0x22, 0x8c, 0x01, 0x0a, 0x17, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, + 0x07, 0x62, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, + 0x62, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x06, 0x52, 0x10, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x12, 0x2b, 0x0a, 0x02, 0x74, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4e, 0x65, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x02, 0x74, 0x78, + 0x22, 0xa8, 0x01, 0x0a, 0x15, 0x42, 0x69, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0c, 0x0a, 0x01, 0x4b, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x4b, 0x12, 0x13, 0x0a, 0x05, 0x65, 0x64, 0x5f, 0x70, + 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x65, 0x64, 0x50, 0x6b, 0x12, 0x12, 0x0a, + 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x65, 0x65, + 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x06, 0x52, 0x10, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2b, + 0x0a, 0x02, 0x74, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x75, 0x73, + 0x6b, 0x2e, 0x4e, 0x65, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x02, 0x74, 0x78, 0x22, 0x4c, 0x0a, 0x1f, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, + 0x0a, 0x10, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x5f, 0x63, 0x61, 0x6c, + 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x66, 0x75, 0x6c, 0x43, 0x61, 0x6c, 0x6c, 0x73, 0x22, 0x63, 0x0a, 0x1d, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x12, 0x2a, 0x0a, 0x05, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x54, 0x78, 0x52, 0x05, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x22, 0x6b, + 0x0a, 0x1e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, + 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, + 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x65, 0x22, 0x28, 0x0a, 0x18, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0c, 0x0a, 0x01, 0x62, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x01, 0x62, 0x22, 0x7c, 0x0a, 0x19, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x02, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, + 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, + 0x02, 0x73, 0x6b, 0x12, 0x1d, 0x0a, 0x02, 0x76, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0d, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, 0x02, + 0x76, 0x6b, 0x12, 0x1f, 0x0a, 0x02, 0x70, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, + 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, + 0x02, 0x70, 0x6b, 0x22, 0x3f, 0x0a, 0x12, 0x4f, 0x77, 0x6e, 0x65, 0x64, 0x4e, 0x6f, 0x74, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x74, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, + 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4e, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x6e, + 0x6f, 0x74, 0x65, 0x73, 0x22, 0xc3, 0x01, 0x0a, 0x15, 0x4e, 0x65, 0x77, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, + 0x0a, 0x02, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, + 0x6b, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x02, 0x73, 0x6b, 0x12, + 0x2d, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x4b, 0x65, 0x79, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x06, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6f, 0x62, 0x66, 0x75, + 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x37, 0x0a, 0x19, 0x56, 0x65, + 0x72, 0x69, 0x66, 0x79, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x76, 0x65, 0x72, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x22, 0x4e, 0x0a, 0x0c, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x02, 0x76, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0d, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, 0x02, + 0x76, 0x6b, 0x12, 0x1f, 0x0a, 0x02, 0x70, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, + 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, + 0x02, 0x70, 0x6b, 0x22, 0x85, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, + 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0c, 0x0a, 0x01, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x64, 0x12, 0x0c, 0x0a, 0x01, 0x6b, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x12, 0x13, 0x0a, 0x05, + 0x65, 0x64, 0x5f, 0x70, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x65, 0x64, 0x50, + 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x06, + 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0x73, 0x0a, 0x15, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, + 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, + 0x73, 0x65, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x22, 0x9a, 0x01, 0x0a, 0x12, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x63, 0x6f, 0x72, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x14, 0x0a, + 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x63, + 0x6f, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x06, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x65, + 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0x2f, 0x0a, + 0x13, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x32, + 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x02, 0x76, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0d, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, 0x02, + 0x76, 0x6b, 0x22, 0x2e, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x22, 0x67, 0x0a, 0x1e, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x4d, + 0x65, 0x6d, 0x70, 0x6f, 0x6f, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x02, 0x76, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, + 0x02, 0x76, 0x6b, 0x12, 0x26, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x43, 0x61, 0x6c, 0x6c, 0x54, 0x78, 0x52, 0x03, 0x74, 0x78, 0x73, 0x22, 0x2b, 0x0a, 0x11, 0x42, + 0x69, 0x6e, 0x61, 0x72, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x16, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, + 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x22, 0x3d, 0x0a, 0x16, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x23, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x11, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x03, 0x74, 0x78, 0x73, 0x22, 0x8f, 0x01, 0x0a, 0x0b, 0x48, 0x61, 0x73, 0x68, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x62, 0x69, 0x6e, 0x5f, 0x69, + 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x72, 0x75, + 0x73, 0x6b, 0x2e, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x09, 0x62, 0x69, 0x6e, 0x49, 0x6e, 0x70, 0x75, 0x74, + 0x73, 0x12, 0x3b, 0x0a, 0x09, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x48, 0x00, 0x52, 0x08, 0x74, 0x78, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x42, 0x09, + 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x30, 0x0a, 0x0c, 0x48, 0x61, 0x73, + 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x68, 0x61, 0x73, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, + 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x32, 0xb5, 0x0b, 0x0a, 0x04, + 0x52, 0x75, 0x73, 0x6b, 0x12, 0x2f, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x11, 0x2e, 0x72, + 0x75, 0x73, 0x6b, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x12, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x68, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x24, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x65, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x72, 0x75, 0x73, 0x6b, + 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, + 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x0d, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x1a, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x44, 0x0a, 0x0b, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x63, 0x6f, 0x72, + 0x65, 0x12, 0x18, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, + 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x72, 0x75, + 0x73, 0x6b, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x56, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x1e, 0x2e, + 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, + 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, + 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, + 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x2d, 0x0a, 0x04, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, + 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x1a, 0x12, 0x2e, 0x72, 0x75, 0x73, 0x6b, + 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x3f, 0x0a, 0x12, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x63, 0x61, 0x6e, 0x4f, 0x77, 0x6e, 0x65, 0x64, + 0x4e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x0d, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x69, 0x65, + 0x77, 0x4b, 0x65, 0x79, 0x1a, 0x18, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4f, 0x77, 0x6e, 0x65, + 0x64, 0x4e, 0x6f, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x42, 0x0a, 0x0e, 0x4e, 0x65, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4e, 0x65, 0x77, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x11, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x12, 0x17, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x72, 0x75, + 0x73, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x69, 0x66, + 0x79, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x2e, 0x72, + 0x75, 0x73, 0x6b, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x43, 0x61, 0x6c, 0x6c, + 0x54, 0x78, 0x1a, 0x1f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x17, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, + 0x74, 0x65, 0x4d, 0x65, 0x6d, 0x70, 0x6f, 0x6f, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, + 0x12, 0x24, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, + 0x65, 0x4d, 0x65, 0x6d, 0x70, 0x6f, 0x6f, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x47, 0x65, + 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x43, 0x0a, 0x08, 0x4e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x1d, + 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0b, 0x56, 0x65, 0x72, 0x69, 0x66, + 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x74, + 0x61, 0x6b, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1f, + 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x5b, 0x0a, 0x10, 0x4e, 0x65, 0x77, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, + 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x25, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x57, 0x69, 0x74, + 0x68, 0x64, 0x72, 0x61, 0x77, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x72, + 0x75, 0x73, 0x6b, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x53, 0x74, 0x61, 0x6b, + 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x3d, + 0x0a, 0x06, 0x4e, 0x65, 0x77, 0x42, 0x69, 0x64, 0x12, 0x1b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, + 0x42, 0x69, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x69, 0x64, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x55, 0x0a, + 0x0e, 0x4e, 0x65, 0x77, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x42, 0x69, 0x64, 0x12, + 0x23, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x42, + 0x69, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x57, 0x69, 0x74, 0x68, + 0x64, 0x72, 0x61, 0x77, 0x42, 0x69, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x58, 0x0a, 0x0f, 0x4e, 0x65, 0x77, 0x57, 0x69, 0x74, 0x68, 0x64, + 0x72, 0x61, 0x77, 0x46, 0x65, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x57, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x46, 0x65, 0x65, 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, + 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x46, 0x65, 0x65, + 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x43, + 0x0a, 0x08, 0x4e, 0x65, 0x77, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x12, 0x1d, 0x2e, 0x72, 0x75, 0x73, + 0x6b, 0x2e, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, + 0x2e, 0x53, 0x6c, 0x61, 0x73, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x00, 0x32, 0x39, 0x0a, 0x06, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x12, 0x2f, 0x0a, + 0x04, 0x48, 0x61, 0x73, 0x68, 0x12, 0x11, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x48, 0x61, 0x73, + 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, + 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2a, + 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, + 0x6b, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x67, + 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x75, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_rusk_proto_rawDescOnce sync.Once + file_rusk_proto_rawDescData = file_rusk_proto_rawDesc +) -func (m *HashResponse) GetHash() *Scalar { - if m != nil { - return m.Hash - } - return nil -} - -func init() { - proto.RegisterType((*EchoRequest)(nil), "rusk.EchoRequest") - proto.RegisterType((*EchoResponse)(nil), "rusk.EchoResponse") - proto.RegisterType((*BidList)(nil), "rusk.BidList") - proto.RegisterType((*Stake)(nil), "rusk.Stake") - proto.RegisterType((*Provisioner)(nil), "rusk.Provisioner") - proto.RegisterType((*ValidateStateTransitionRequest)(nil), "rusk.ValidateStateTransitionRequest") - proto.RegisterType((*ContractCallTx)(nil), "rusk.ContractCallTx") - proto.RegisterType((*SlashTransactionRequest)(nil), "rusk.SlashTransactionRequest") - proto.RegisterType((*WithdrawFeesTransactionRequest)(nil), "rusk.WithdrawFeesTransactionRequest") - proto.RegisterType((*WithdrawStakeTransactionRequest)(nil), "rusk.WithdrawStakeTransactionRequest") - proto.RegisterType((*WithdrawBidTransactionRequest)(nil), "rusk.WithdrawBidTransactionRequest") - proto.RegisterType((*StakeTransactionRequest)(nil), "rusk.StakeTransactionRequest") - proto.RegisterType((*BidTransactionRequest)(nil), "rusk.BidTransactionRequest") - proto.RegisterType((*ValidateStateTransitionResponse)(nil), "rusk.ValidateStateTransitionResponse") - proto.RegisterType((*ExecuteStateTransitionRequest)(nil), "rusk.ExecuteStateTransitionRequest") - proto.RegisterType((*ExecuteStateTransitionResponse)(nil), "rusk.ExecuteStateTransitionResponse") - proto.RegisterType((*GenerateSecretKeyRequest)(nil), "rusk.GenerateSecretKeyRequest") - proto.RegisterType((*GenerateSecretKeyResponse)(nil), "rusk.GenerateSecretKeyResponse") - proto.RegisterType((*OwnedNotesResponse)(nil), "rusk.OwnedNotesResponse") - proto.RegisterType((*NewTransactionRequest)(nil), "rusk.NewTransactionRequest") - proto.RegisterType((*VerifyTransactionResponse)(nil), "rusk.VerifyTransactionResponse") - proto.RegisterType((*KeysResponse)(nil), "rusk.KeysResponse") - proto.RegisterType((*GenerateScoreRequest)(nil), "rusk.GenerateScoreRequest") - proto.RegisterType((*GenerateScoreResponse)(nil), "rusk.GenerateScoreResponse") - proto.RegisterType((*VerifyScoreRequest)(nil), "rusk.VerifyScoreRequest") - proto.RegisterType((*VerifyScoreResponse)(nil), "rusk.VerifyScoreResponse") - proto.RegisterType((*GetBalanceRequest)(nil), "rusk.GetBalanceRequest") - proto.RegisterType((*GetBalanceResponse)(nil), "rusk.GetBalanceResponse") - proto.RegisterType((*CalculateMempoolBalanceRequest)(nil), "rusk.CalculateMempoolBalanceRequest") - proto.RegisterType((*BinaryHashRequest)(nil), "rusk.BinaryHashRequest") - proto.RegisterType((*TransactionHashRequest)(nil), "rusk.TransactionHashRequest") - proto.RegisterType((*HashRequest)(nil), "rusk.HashRequest") - proto.RegisterType((*HashResponse)(nil), "rusk.HashResponse") -} - -func init() { proto.RegisterFile("rusk.proto", fileDescriptor_211ec4e18343b18f) } - -var fileDescriptor_211ec4e18343b18f = []byte{ - // 1709 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xdb, 0x6e, 0x23, 0x4d, - 0x11, 0xf6, 0x39, 0x76, 0xd9, 0x39, 0xf5, 0x66, 0x13, 0x67, 0x96, 0x24, 0x4b, 0x67, 0x17, 0x85, - 0x7f, 0xb5, 0x09, 0x32, 0x17, 0x80, 0x7e, 0xad, 0x56, 0xeb, 0xec, 0x21, 0x90, 0xdd, 0xb0, 0x9a, - 0x2c, 0x01, 0xc1, 0x85, 0x35, 0x87, 0xb6, 0xdd, 0xf2, 0x64, 0xc6, 0x4c, 0xf7, 0xc4, 0xb6, 0xc4, - 0x0d, 0x17, 0xdc, 0x20, 0x24, 0xee, 0x79, 0x02, 0x5e, 0x80, 0x27, 0xe0, 0x25, 0x78, 0x1c, 0xd4, - 0x3d, 0x3d, 0x27, 0x7b, 0xec, 0x24, 0x48, 0xdc, 0x75, 0xd7, 0xa1, 0xab, 0xaa, 0xab, 0xba, 0xbe, - 0xa9, 0x01, 0xf0, 0x03, 0x36, 0x3a, 0x1d, 0xfb, 0x1e, 0xf7, 0x50, 0x45, 0xac, 0xb5, 0x66, 0x9f, - 0x12, 0xc7, 0x0e, 0x49, 0x1a, 0x8c, 0xc8, 0x8c, 0x45, 0x6b, 0xd7, 0xe3, 0x44, 0xad, 0xb7, 0xb9, - 0x6f, 0xb8, 0xcc, 0xb0, 0x38, 0xf5, 0x5c, 0x45, 0xda, 0xb4, 0x3c, 0x97, 0x11, 0x97, 0x05, 0x4a, - 0x1e, 0xaf, 0x43, 0xf3, 0x83, 0x35, 0xf4, 0x74, 0xf2, 0xc7, 0x80, 0x30, 0x8e, 0x37, 0xa0, 0x15, - 0x6e, 0xd9, 0x58, 0x08, 0xe2, 0x17, 0xb0, 0xd6, 0xa5, 0xf6, 0x67, 0xca, 0x38, 0xda, 0x87, 0xba, - 0x49, 0xed, 0x9e, 0x43, 0x19, 0x6f, 0x17, 0x9f, 0x97, 0x4f, 0x5a, 0xfa, 0x9a, 0x19, 0xb2, 0xb0, - 0x01, 0xd5, 0x6b, 0x6e, 0x8c, 0x08, 0xda, 0x85, 0x9a, 0x71, 0xeb, 0x05, 0xae, 0x90, 0x28, 0x9e, - 0xd4, 0x74, 0xb5, 0x43, 0x3f, 0x84, 0x16, 0xe3, 0x86, 0xcf, 0x7b, 0x43, 0x42, 0x07, 0x43, 0xde, - 0x2e, 0x49, 0x6e, 0x53, 0xd2, 0x2e, 0x24, 0x09, 0x1d, 0x00, 0x10, 0xd7, 0x8e, 0x04, 0xca, 0x52, - 0xa0, 0x41, 0x5c, 0x3b, 0x64, 0xe3, 0x4b, 0x68, 0x7e, 0xf5, 0xbd, 0x3b, 0xca, 0xa8, 0xe7, 0x12, - 0x1f, 0xed, 0xc1, 0x9a, 0xe9, 0xb0, 0xde, 0x88, 0xcc, 0xa4, 0xa5, 0x96, 0x5e, 0x33, 0x1d, 0x76, - 0x49, 0x66, 0xe8, 0x18, 0x6a, 0x4c, 0xb8, 0xc2, 0xda, 0xa5, 0xe7, 0xe5, 0x93, 0x66, 0xa7, 0x79, - 0x2a, 0xef, 0x4e, 0xba, 0xa7, 0x2b, 0x16, 0x66, 0x70, 0x78, 0x63, 0x38, 0xd4, 0x36, 0x38, 0xb9, - 0xe6, 0x06, 0x27, 0xdf, 0xc4, 0x3d, 0x51, 0x71, 0x4d, 0xea, 0x1e, 0xd0, 0x77, 0x50, 0xb5, 0x0c, - 0xc7, 0x61, 0x32, 0xd2, 0x66, 0x67, 0x27, 0x3c, 0xe5, 0xdc, 0x73, 0xb9, 0x6f, 0x58, 0xfc, 0xdc, - 0x70, 0x9c, 0x6f, 0x53, 0x3d, 0x14, 0x41, 0x2f, 0x61, 0xc3, 0x0a, 0x7c, 0x9f, 0xb8, 0x73, 0xe1, - 0xad, 0x2b, 0xaa, 0x8a, 0xe0, 0x3f, 0x65, 0xd8, 0xc8, 0x1e, 0x80, 0x8e, 0xa1, 0xc4, 0xa7, 0x32, - 0x80, 0x66, 0x67, 0x3b, 0x34, 0xf1, 0x2d, 0x49, 0xd9, 0x45, 0x41, 0x2f, 0xf1, 0x29, 0xfa, 0x1e, - 0xea, 0x13, 0xca, 0x87, 0xb6, 0x6f, 0x4c, 0xe4, 0xc1, 0xcd, 0xce, 0x41, 0x28, 0xfa, 0x5b, 0x45, - 0xfd, 0x48, 0x08, 0xcb, 0xaa, 0xc5, 0x0a, 0xe8, 0x14, 0xaa, 0x32, 0x66, 0x79, 0xa1, 0xcd, 0xce, - 0x6e, 0xea, 0x36, 0xb2, 0x2a, 0xa1, 0x18, 0x3a, 0x81, 0xb2, 0x49, 0xed, 0x76, 0x45, 0x4a, 0xab, - 0xa8, 0xbb, 0xd4, 0xce, 0xca, 0x0a, 0x11, 0x79, 0xb2, 0x63, 0xb0, 0x61, 0xbb, 0x9a, 0x39, 0x59, - 0x90, 0xe6, 0x4f, 0x16, 0x34, 0xf4, 0x06, 0xc0, 0xa6, 0x8c, 0xfb, 0xd4, 0x0c, 0x38, 0x69, 0xd7, - 0xa4, 0xd2, 0xb3, 0x50, 0xe9, 0x7d, 0x4c, 0xcf, 0x6a, 0xa6, 0x14, 0xd0, 0x27, 0xd8, 0x88, 0x82, - 0xea, 0x85, 0x11, 0xad, 0xc9, 0x23, 0x0e, 0xb3, 0x77, 0x91, 0x13, 0xd9, 0xfa, 0x24, 0xcd, 0x43, - 0xef, 0xa0, 0x15, 0x1f, 0x24, 0x42, 0xad, 0xcb, 0x63, 0x7e, 0x90, 0x3d, 0x66, 0x21, 0xe4, 0xe6, - 0x24, 0xe1, 0x74, 0x37, 0x61, 0xdd, 0x52, 0x89, 0xec, 0x89, 0x12, 0xc0, 0x7f, 0x2e, 0xc1, 0xde, - 0x7c, 0xe4, 0x51, 0x25, 0x2d, 0xad, 0x54, 0x04, 0x15, 0xc6, 0xc9, 0x58, 0xe6, 0x74, 0x5d, 0x97, - 0x6b, 0xb4, 0x03, 0x55, 0xdf, 0x0b, 0x5c, 0x5b, 0xd5, 0x7f, 0xb8, 0x41, 0xcf, 0xa0, 0xd1, 0xa7, - 0x3e, 0xe3, 0xbd, 0x5b, 0x36, 0x90, 0xa9, 0x69, 0xe9, 0x75, 0x49, 0xf8, 0xc2, 0x06, 0x09, 0x93, - 0xd1, 0x81, 0xcc, 0x45, 0xc4, 0xbc, 0xa6, 0x03, 0xf1, 0xa8, 0x18, 0xb1, 0x3c, 0xd7, 0x96, 0xaa, - 0x35, 0xc9, 0x6d, 0x84, 0x14, 0xa1, 0x9b, 0xb0, 0x85, 0xf2, 0x5a, 0x9a, 0x2d, 0xb4, 0x5f, 0xc9, - 0xf2, 0xac, 0xa7, 0x53, 0x75, 0x45, 0x26, 0x8b, 0x31, 0x8a, 0x32, 0xc5, 0x7f, 0x2d, 0xc2, 0xe1, - 0x92, 0x8a, 0xbc, 0xf7, 0x2a, 0xb6, 0xa0, 0x2c, 0x1c, 0x28, 0x49, 0xa2, 0x58, 0x0a, 0x8a, 0xf0, - 0xb8, 0x1c, 0x52, 0x6e, 0x59, 0xe4, 0x4c, 0xe5, 0x61, 0xce, 0xcc, 0xe0, 0x68, 0x59, 0x45, 0xfc, - 0x0f, 0xce, 0x84, 0xa6, 0xcb, 0x0f, 0x33, 0xcd, 0xe0, 0x20, 0xbf, 0x8a, 0x22, 0xc3, 0xea, 0xfc, - 0x62, 0x72, 0xfe, 0x13, 0xa8, 0x12, 0xbb, 0x37, 0x1e, 0x29, 0x9b, 0x15, 0x62, 0x7f, 0x1d, 0x3d, - 0xce, 0xe8, 0xdf, 0x8a, 0xb0, 0xf7, 0xe8, 0x40, 0x5f, 0xc1, 0x36, 0x99, 0x8e, 0xa9, 0x6f, 0x08, - 0xe9, 0x6c, 0xeb, 0xda, 0x4a, 0x18, 0xaa, 0x3d, 0x3f, 0xca, 0x9d, 0x7f, 0x16, 0xe1, 0x69, 0x7e, - 0xf0, 0x2d, 0x28, 0x5e, 0x2a, 0x37, 0x8a, 0x97, 0xf9, 0x81, 0x8b, 0x77, 0x41, 0x88, 0xad, 0x72, - 0x2f, 0xd7, 0xf9, 0xae, 0x56, 0x56, 0xba, 0x5a, 0x7d, 0x98, 0xab, 0x9f, 0xe1, 0x68, 0x29, 0x14, - 0x84, 0x18, 0x88, 0x7e, 0x0c, 0x5b, 0x2c, 0xb0, 0x2c, 0xc2, 0x58, 0x3f, 0x70, 0x7a, 0x09, 0x2c, - 0x54, 0xf5, 0xcd, 0x84, 0x2e, 0x3a, 0x3a, 0xc3, 0x16, 0x1c, 0x7c, 0x98, 0x12, 0x2b, 0x58, 0x8a, - 0x2b, 0xbb, 0x50, 0x53, 0xde, 0x2b, 0x80, 0x0c, 0x77, 0x09, 0xde, 0x94, 0xee, 0xc5, 0x1b, 0x3c, - 0x82, 0xc3, 0x65, 0x46, 0x94, 0xc7, 0x6d, 0x58, 0x53, 0x9e, 0x49, 0x33, 0x75, 0x3d, 0xda, 0xa2, - 0x33, 0x68, 0x58, 0xde, 0xed, 0x2d, 0xe5, 0x9c, 0x10, 0x65, 0x4b, 0x01, 0x4f, 0x0a, 0x5d, 0xf5, - 0x44, 0x06, 0x9f, 0x40, 0xfb, 0x13, 0x71, 0x89, 0x2f, 0xee, 0x87, 0x58, 0x3e, 0xe1, 0x97, 0x64, - 0x96, 0x4a, 0xa6, 0x19, 0x25, 0xd3, 0xc4, 0x7f, 0x82, 0xfd, 0x1c, 0x49, 0xe5, 0xd1, 0x11, 0x94, - 0xd8, 0x48, 0x21, 0xdd, 0xa6, 0x82, 0x8a, 0x58, 0xa8, 0xc4, 0x46, 0xe8, 0x00, 0x4a, 0x77, 0x23, - 0x85, 0x6f, 0xeb, 0xa1, 0xc0, 0x0d, 0x25, 0x13, 0xc9, 0xbe, 0x1b, 0x09, 0xfd, 0xf1, 0x48, 0x95, - 0x9f, 0xd2, 0xff, 0x1a, 0x98, 0x0e, 0xb5, 0xa4, 0xc0, 0x78, 0x84, 0xdf, 0x02, 0xfa, 0xf5, 0xc4, - 0x25, 0xf6, 0x95, 0xc7, 0x09, 0x4b, 0xa5, 0xae, 0x2a, 0xbe, 0x87, 0x22, 0x18, 0x7f, 0xa2, 0xf0, - 0x86, 0x58, 0xfe, 0x6c, 0xcc, 0x43, 0x61, 0x3d, 0x94, 0xc0, 0xff, 0x2e, 0xc2, 0xd3, 0xdc, 0x32, - 0xb9, 0xdf, 0xf7, 0xd7, 0xd0, 0xf0, 0x89, 0x45, 0xc7, 0x94, 0xb8, 0x5c, 0x85, 0xb0, 0xe0, 0x63, - 0x22, 0x21, 0x9a, 0xfc, 0x9d, 0xe1, 0x04, 0x24, 0x6a, 0xf2, 0x72, 0x23, 0xda, 0x42, 0x9f, 0x10, - 0x55, 0xd4, 0x62, 0x89, 0x0e, 0x01, 0x3c, 0xb3, 0x1f, 0x30, 0xcb, 0xe0, 0xc4, 0x96, 0xf5, 0x5c, - 0xd7, 0x53, 0x14, 0xf1, 0x50, 0x6c, 0x83, 0x1b, 0xaa, 0xad, 0xcb, 0x35, 0xfe, 0x19, 0xec, 0xdf, - 0x10, 0x9f, 0xf6, 0x67, 0x99, 0x38, 0xd4, 0x6d, 0x68, 0x50, 0xbf, 0x13, 0x4c, 0x4a, 0x6c, 0x55, - 0x17, 0xf1, 0x1e, 0x5f, 0x41, 0xeb, 0x92, 0xcc, 0x92, 0x9b, 0x0b, 0xf3, 0x51, 0x5c, 0x9d, 0x8f, - 0xd2, 0xf2, 0x7c, 0xfc, 0xa5, 0x08, 0x3b, 0x71, 0x39, 0x58, 0x9e, 0x4f, 0x52, 0x45, 0x63, 0x47, - 0x45, 0x63, 0x8b, 0x5d, 0xf4, 0xfa, 0x8b, 0xf9, 0x4f, 0x3f, 0xee, 0x11, 0x95, 0x54, 0x8f, 0x88, - 0x71, 0xb2, 0x9a, 0xc6, 0xc9, 0x08, 0x51, 0x6b, 0x09, 0xa2, 0x62, 0x06, 0x4f, 0xe7, 0xdc, 0x50, - 0x01, 0xee, 0x40, 0x75, 0xec, 0x7b, 0x5e, 0x5f, 0xf9, 0x12, 0x6e, 0x04, 0x95, 0x09, 0x31, 0xe5, - 0x53, 0xb8, 0xc9, 0xf5, 0x4b, 0x83, 0x3a, 0xb5, 0x89, 0xcb, 0x29, 0x9f, 0x45, 0x98, 0x1c, 0xed, - 0xf1, 0x3f, 0x8a, 0x80, 0xc2, 0x34, 0x64, 0x42, 0xff, 0x3f, 0x9a, 0x7c, 0xc4, 0x8d, 0x9c, 0xc1, - 0x93, 0x8c, 0x6f, 0xf7, 0xf5, 0x0c, 0xdc, 0x81, 0xed, 0x4f, 0x84, 0x77, 0x0d, 0xc7, 0x70, 0xad, - 0x38, 0x96, 0xd5, 0xf5, 0x81, 0x4f, 0x01, 0xa5, 0x75, 0x12, 0x1b, 0x66, 0x48, 0x52, 0xed, 0x2f, - 0xda, 0xe2, 0x01, 0x1c, 0x9e, 0x1b, 0x8e, 0x15, 0x38, 0x06, 0x27, 0x5f, 0xc8, 0xed, 0xd8, 0xf3, - 0x9c, 0x47, 0x19, 0x44, 0x3f, 0x82, 0x32, 0x9f, 0xae, 0x6e, 0x9f, 0x42, 0x00, 0xbf, 0x82, 0xed, - 0x2e, 0x75, 0x0d, 0x7f, 0x76, 0x61, 0xb0, 0x61, 0xaa, 0x2b, 0x53, 0x77, 0x1c, 0x70, 0xa6, 0x06, - 0x1b, 0xb5, 0xc3, 0x6f, 0x60, 0x37, 0xfd, 0x19, 0x98, 0xd2, 0x38, 0x0e, 0xcd, 0x15, 0xd3, 0x1d, - 0x34, 0xfd, 0xe4, 0xa4, 0xad, 0xbf, 0x17, 0xa1, 0x99, 0x56, 0xfa, 0x39, 0x80, 0x49, 0xdd, 0x5e, - 0x6c, 0x4a, 0x84, 0xb2, 0x17, 0x7d, 0x63, 0xcf, 0xf9, 0x74, 0x51, 0xd0, 0x1b, 0x26, 0x75, 0x7f, - 0x29, 0x65, 0xd1, 0xf7, 0xd0, 0xe0, 0xd3, 0x48, 0xb1, 0x94, 0xfe, 0x62, 0xcd, 0xf7, 0x4f, 0xcc, - 0x00, 0x7c, 0x1a, 0x2a, 0x77, 0x1b, 0xb0, 0xe6, 0xab, 0xf1, 0xee, 0x27, 0xd0, 0x0a, 0xa5, 0x54, - 0x42, 0x9e, 0x43, 0x65, 0x28, 0xbe, 0xe1, 0x43, 0x5f, 0x5a, 0xaa, 0xb9, 0x59, 0x86, 0x63, 0xf8, - 0xba, 0xe4, 0x74, 0xfe, 0xd5, 0x84, 0x8a, 0x1e, 0xb0, 0x11, 0x3a, 0x83, 0x8a, 0x98, 0x0c, 0x91, - 0x0a, 0x36, 0x35, 0x34, 0x6a, 0x28, 0x4d, 0x52, 0x83, 0x63, 0x01, 0x0d, 0x61, 0x6f, 0x09, 0xb2, - 0xa2, 0x17, 0x2a, 0x7f, 0x2b, 0x67, 0x30, 0xed, 0xe5, 0x3d, 0x52, 0xb1, 0x25, 0x02, 0xbb, 0xf9, - 0x80, 0x88, 0x8e, 0x95, 0x67, 0xab, 0x30, 0x59, 0x7b, 0xb1, 0x5a, 0x28, 0x36, 0xf3, 0x2b, 0x58, - 0xcf, 0xb4, 0x12, 0xa4, 0x85, 0x8a, 0x79, 0x6d, 0x4e, 0x7b, 0x96, 0xcb, 0x8b, 0xcf, 0x7a, 0x0f, - 0xcd, 0xd4, 0x23, 0x44, 0x6d, 0x15, 0xea, 0x42, 0xcf, 0xd0, 0xf6, 0x73, 0x38, 0xf1, 0x29, 0x37, - 0xe2, 0x65, 0xce, 0x41, 0x2e, 0x3a, 0x9c, 0xb3, 0x3c, 0x87, 0xda, 0xda, 0xd1, 0x52, 0x7e, 0x7c, - 0xee, 0x6b, 0xa8, 0x08, 0x30, 0x40, 0xf3, 0x68, 0x17, 0x65, 0x3a, 0x8d, 0x14, 0xb8, 0x80, 0xde, - 0x02, 0xfa, 0x18, 0x38, 0xce, 0xb5, 0x65, 0xb8, 0x09, 0x06, 0xa3, 0xec, 0x23, 0xd5, 0x54, 0x88, - 0x8b, 0x20, 0x8d, 0x0b, 0xa8, 0x0b, 0x1b, 0x59, 0xe8, 0x45, 0xab, 0xbe, 0xdb, 0xb4, 0xc5, 0xf7, - 0x86, 0x0b, 0xe8, 0x1d, 0x40, 0xd2, 0x71, 0xd0, 0x5e, 0x14, 0xe4, 0x5c, 0xdf, 0x8a, 0xdc, 0x58, - 0x6c, 0x4e, 0xb8, 0x80, 0x3e, 0xc3, 0xf6, 0x02, 0x78, 0xa2, 0xdc, 0x5e, 0x12, 0x5d, 0xe2, 0x52, - 0xac, 0xc5, 0x05, 0xf4, 0x07, 0xd8, 0x5b, 0xd2, 0xd2, 0xa2, 0xfa, 0x5f, 0xdd, 0xf1, 0x56, 0xba, - 0x7a, 0x0e, 0xf5, 0x2b, 0xa2, 0x26, 0xda, 0x83, 0xfc, 0xa1, 0x3e, 0x3a, 0x66, 0xc9, 0xcc, 0x8f, - 0x0b, 0xe8, 0x22, 0x2e, 0xc2, 0xf0, 0xe7, 0x4d, 0xbe, 0xe0, 0xc3, 0x62, 0xdd, 0xba, 0x22, 0x93, - 0xcc, 0xc8, 0x85, 0x5e, 0xae, 0x9e, 0xcc, 0x23, 0xf7, 0xee, 0x19, 0xe0, 0x71, 0x01, 0xbd, 0x81, - 0xda, 0x15, 0x11, 0xc3, 0x54, 0x54, 0x15, 0xb9, 0xa3, 0x85, 0x96, 0xfb, 0xb7, 0x02, 0x17, 0xd0, - 0x6f, 0x64, 0x71, 0xa5, 0x66, 0xb2, 0xa8, 0x2b, 0xac, 0x1c, 0xd3, 0xb4, 0x95, 0x7f, 0x04, 0x70, - 0x01, 0xfd, 0x0e, 0x36, 0x53, 0xc7, 0x8a, 0x89, 0x37, 0x4a, 0xeb, 0xea, 0x29, 0x58, 0x5b, 0xfd, - 0xf7, 0x26, 0xc9, 0xad, 0xfc, 0x6b, 0x72, 0x90, 0xff, 0x5b, 0x65, 0x3e, 0xb7, 0x73, 0x6c, 0x5c, - 0xe8, 0xfc, 0x02, 0x6a, 0xe7, 0xe2, 0x23, 0xd7, 0x13, 0x8d, 0x5b, 0xf4, 0xfc, 0xa8, 0x71, 0xa7, - 0x50, 0x22, 0x7a, 0xce, 0x69, 0x48, 0xc0, 0x85, 0xee, 0x77, 0xbf, 0x3f, 0x19, 0x50, 0x3e, 0x0c, - 0xcc, 0x53, 0xcb, 0xbb, 0x3d, 0xb3, 0x03, 0x36, 0x7a, 0x2d, 0xff, 0x15, 0x9a, 0x41, 0xff, 0xcc, - 0x08, 0xb8, 0x37, 0x20, 0xee, 0xd9, 0xc0, 0x3b, 0x13, 0xaa, 0x66, 0x4d, 0x72, 0x7e, 0xfa, 0xdf, - 0x00, 0x00, 0x00, 0xff, 0xff, 0xa2, 0x10, 0x78, 0xf1, 0xa2, 0x14, 0x00, 0x00, +func file_rusk_proto_rawDescGZIP() []byte { + file_rusk_proto_rawDescOnce.Do(func() { + file_rusk_proto_rawDescData = protoimpl.X.CompressGZIP(file_rusk_proto_rawDescData) + }) + return file_rusk_proto_rawDescData +} + +var file_rusk_proto_msgTypes = make([]protoimpl.MessageInfo, 33) +var file_rusk_proto_goTypes = []interface{}{ + (*EchoRequest)(nil), // 0: rusk.EchoRequest + (*EchoResponse)(nil), // 1: rusk.EchoResponse + (*BidList)(nil), // 2: rusk.BidList + (*Stake)(nil), // 3: rusk.Stake + (*Provisioner)(nil), // 4: rusk.Provisioner + (*ValidateStateTransitionRequest)(nil), // 5: rusk.ValidateStateTransitionRequest + (*ContractCallTx)(nil), // 6: rusk.ContractCallTx + (*SlashTransactionRequest)(nil), // 7: rusk.SlashTransactionRequest + (*WithdrawFeesTransactionRequest)(nil), // 8: rusk.WithdrawFeesTransactionRequest + (*WithdrawStakeTransactionRequest)(nil), // 9: rusk.WithdrawStakeTransactionRequest + (*WithdrawBidTransactionRequest)(nil), // 10: rusk.WithdrawBidTransactionRequest + (*StakeTransactionRequest)(nil), // 11: rusk.StakeTransactionRequest + (*BidTransactionRequest)(nil), // 12: rusk.BidTransactionRequest + (*ValidateStateTransitionResponse)(nil), // 13: rusk.ValidateStateTransitionResponse + (*ExecuteStateTransitionRequest)(nil), // 14: rusk.ExecuteStateTransitionRequest + (*ExecuteStateTransitionResponse)(nil), // 15: rusk.ExecuteStateTransitionResponse + (*GenerateSecretKeyRequest)(nil), // 16: rusk.GenerateSecretKeyRequest + (*GenerateSecretKeyResponse)(nil), // 17: rusk.GenerateSecretKeyResponse + (*OwnedNotesResponse)(nil), // 18: rusk.OwnedNotesResponse + (*NewTransactionRequest)(nil), // 19: rusk.NewTransactionRequest + (*VerifyTransactionResponse)(nil), // 20: rusk.VerifyTransactionResponse + (*KeysResponse)(nil), // 21: rusk.KeysResponse + (*GenerateScoreRequest)(nil), // 22: rusk.GenerateScoreRequest + (*GenerateScoreResponse)(nil), // 23: rusk.GenerateScoreResponse + (*VerifyScoreRequest)(nil), // 24: rusk.VerifyScoreRequest + (*VerifyScoreResponse)(nil), // 25: rusk.VerifyScoreResponse + (*GetBalanceRequest)(nil), // 26: rusk.GetBalanceRequest + (*GetBalanceResponse)(nil), // 27: rusk.GetBalanceResponse + (*CalculateMempoolBalanceRequest)(nil), // 28: rusk.CalculateMempoolBalanceRequest + (*BinaryHashRequest)(nil), // 29: rusk.BinaryHashRequest + (*TransactionHashRequest)(nil), // 30: rusk.TransactionHashRequest + (*HashRequest)(nil), // 31: rusk.HashRequest + (*HashResponse)(nil), // 32: rusk.HashResponse + (*Transaction)(nil), // 33: rusk.Transaction + (*WithdrawFeesTransaction)(nil), // 34: rusk.WithdrawFeesTransaction + (*StakeTransaction)(nil), // 35: rusk.StakeTransaction + (*BidTransaction)(nil), // 36: rusk.BidTransaction + (*SlashTransaction)(nil), // 37: rusk.SlashTransaction + (*DistributeTransaction)(nil), // 38: rusk.DistributeTransaction + (*WithdrawStakeTransaction)(nil), // 39: rusk.WithdrawStakeTransaction + (*WithdrawBidTransaction)(nil), // 40: rusk.WithdrawBidTransaction + (*SecretKey)(nil), // 41: rusk.SecretKey + (*ViewKey)(nil), // 42: rusk.ViewKey + (*PublicKey)(nil), // 43: rusk.PublicKey + (*DecryptedNote)(nil), // 44: rusk.DecryptedNote + (*Scalar)(nil), // 45: rusk.Scalar +} +var file_rusk_proto_depIdxs = []int32{ + 3, // 0: rusk.Provisioner.stakes:type_name -> rusk.Stake + 6, // 1: rusk.ValidateStateTransitionRequest.calls:type_name -> rusk.ContractCallTx + 33, // 2: rusk.ContractCallTx.tx:type_name -> rusk.Transaction + 34, // 3: rusk.ContractCallTx.withdraw:type_name -> rusk.WithdrawFeesTransaction + 35, // 4: rusk.ContractCallTx.stake:type_name -> rusk.StakeTransaction + 36, // 5: rusk.ContractCallTx.bid:type_name -> rusk.BidTransaction + 37, // 6: rusk.ContractCallTx.slash:type_name -> rusk.SlashTransaction + 38, // 7: rusk.ContractCallTx.distribute:type_name -> rusk.DistributeTransaction + 39, // 8: rusk.ContractCallTx.withdraw_stake:type_name -> rusk.WithdrawStakeTransaction + 40, // 9: rusk.ContractCallTx.withdraw_bid:type_name -> rusk.WithdrawBidTransaction + 19, // 10: rusk.SlashTransactionRequest.tx:type_name -> rusk.NewTransactionRequest + 19, // 11: rusk.WithdrawFeesTransactionRequest.tx:type_name -> rusk.NewTransactionRequest + 19, // 12: rusk.WithdrawStakeTransactionRequest.tx:type_name -> rusk.NewTransactionRequest + 19, // 13: rusk.WithdrawBidTransactionRequest.tx:type_name -> rusk.NewTransactionRequest + 19, // 14: rusk.StakeTransactionRequest.tx:type_name -> rusk.NewTransactionRequest + 19, // 15: rusk.BidTransactionRequest.tx:type_name -> rusk.NewTransactionRequest + 6, // 16: rusk.ExecuteStateTransitionRequest.calls:type_name -> rusk.ContractCallTx + 4, // 17: rusk.ExecuteStateTransitionResponse.committee:type_name -> rusk.Provisioner + 41, // 18: rusk.GenerateSecretKeyResponse.sk:type_name -> rusk.SecretKey + 42, // 19: rusk.GenerateSecretKeyResponse.vk:type_name -> rusk.ViewKey + 43, // 20: rusk.GenerateSecretKeyResponse.pk:type_name -> rusk.PublicKey + 44, // 21: rusk.OwnedNotesResponse.notes:type_name -> rusk.DecryptedNote + 41, // 22: rusk.NewTransactionRequest.sk:type_name -> rusk.SecretKey + 43, // 23: rusk.NewTransactionRequest.recipient:type_name -> rusk.PublicKey + 42, // 24: rusk.KeysResponse.vk:type_name -> rusk.ViewKey + 43, // 25: rusk.KeysResponse.pk:type_name -> rusk.PublicKey + 42, // 26: rusk.GetBalanceRequest.vk:type_name -> rusk.ViewKey + 42, // 27: rusk.CalculateMempoolBalanceRequest.vk:type_name -> rusk.ViewKey + 6, // 28: rusk.CalculateMempoolBalanceRequest.txs:type_name -> rusk.ContractCallTx + 33, // 29: rusk.TransactionHashRequest.txs:type_name -> rusk.Transaction + 29, // 30: rusk.HashRequest.bin_inputs:type_name -> rusk.BinaryHashRequest + 30, // 31: rusk.HashRequest.tx_inputs:type_name -> rusk.TransactionHashRequest + 45, // 32: rusk.HashResponse.hash:type_name -> rusk.Scalar + 0, // 33: rusk.Rusk.Echo:input_type -> rusk.EchoRequest + 5, // 34: rusk.Rusk.ValidateStateTransition:input_type -> rusk.ValidateStateTransitionRequest + 14, // 35: rusk.Rusk.ExecuteStateTransition:input_type -> rusk.ExecuteStateTransitionRequest + 22, // 36: rusk.Rusk.GenerateScore:input_type -> rusk.GenerateScoreRequest + 24, // 37: rusk.Rusk.VerifyScore:input_type -> rusk.VerifyScoreRequest + 16, // 38: rusk.Rusk.GenerateSecretKey:input_type -> rusk.GenerateSecretKeyRequest + 41, // 39: rusk.Rusk.Keys:input_type -> rusk.SecretKey + 42, // 40: rusk.Rusk.FullScanOwnedNotes:input_type -> rusk.ViewKey + 19, // 41: rusk.Rusk.NewTransaction:input_type -> rusk.NewTransactionRequest + 26, // 42: rusk.Rusk.GetBalance:input_type -> rusk.GetBalanceRequest + 6, // 43: rusk.Rusk.VerifyTransaction:input_type -> rusk.ContractCallTx + 28, // 44: rusk.Rusk.CalculateMempoolBalance:input_type -> rusk.CalculateMempoolBalanceRequest + 11, // 45: rusk.Rusk.NewStake:input_type -> rusk.StakeTransactionRequest + 35, // 46: rusk.Rusk.VerifyStake:input_type -> rusk.StakeTransaction + 9, // 47: rusk.Rusk.NewWithdrawStake:input_type -> rusk.WithdrawStakeTransactionRequest + 12, // 48: rusk.Rusk.NewBid:input_type -> rusk.BidTransactionRequest + 10, // 49: rusk.Rusk.NewWithdrawBid:input_type -> rusk.WithdrawBidTransactionRequest + 8, // 50: rusk.Rusk.NewWithdrawFees:input_type -> rusk.WithdrawFeesTransactionRequest + 7, // 51: rusk.Rusk.NewSlash:input_type -> rusk.SlashTransactionRequest + 31, // 52: rusk.Crypto.Hash:input_type -> rusk.HashRequest + 1, // 53: rusk.Rusk.Echo:output_type -> rusk.EchoResponse + 13, // 54: rusk.Rusk.ValidateStateTransition:output_type -> rusk.ValidateStateTransitionResponse + 15, // 55: rusk.Rusk.ExecuteStateTransition:output_type -> rusk.ExecuteStateTransitionResponse + 23, // 56: rusk.Rusk.GenerateScore:output_type -> rusk.GenerateScoreResponse + 25, // 57: rusk.Rusk.VerifyScore:output_type -> rusk.VerifyScoreResponse + 17, // 58: rusk.Rusk.GenerateSecretKey:output_type -> rusk.GenerateSecretKeyResponse + 21, // 59: rusk.Rusk.Keys:output_type -> rusk.KeysResponse + 18, // 60: rusk.Rusk.FullScanOwnedNotes:output_type -> rusk.OwnedNotesResponse + 33, // 61: rusk.Rusk.NewTransaction:output_type -> rusk.Transaction + 27, // 62: rusk.Rusk.GetBalance:output_type -> rusk.GetBalanceResponse + 20, // 63: rusk.Rusk.VerifyTransaction:output_type -> rusk.VerifyTransactionResponse + 27, // 64: rusk.Rusk.CalculateMempoolBalance:output_type -> rusk.GetBalanceResponse + 35, // 65: rusk.Rusk.NewStake:output_type -> rusk.StakeTransaction + 20, // 66: rusk.Rusk.VerifyStake:output_type -> rusk.VerifyTransactionResponse + 39, // 67: rusk.Rusk.NewWithdrawStake:output_type -> rusk.WithdrawStakeTransaction + 36, // 68: rusk.Rusk.NewBid:output_type -> rusk.BidTransaction + 40, // 69: rusk.Rusk.NewWithdrawBid:output_type -> rusk.WithdrawBidTransaction + 34, // 70: rusk.Rusk.NewWithdrawFees:output_type -> rusk.WithdrawFeesTransaction + 37, // 71: rusk.Rusk.NewSlash:output_type -> rusk.SlashTransaction + 32, // 72: rusk.Crypto.Hash:output_type -> rusk.HashResponse + 53, // [53:73] is the sub-list for method output_type + 33, // [33:53] is the sub-list for method input_type + 33, // [33:33] is the sub-list for extension type_name + 33, // [33:33] is the sub-list for extension extendee + 0, // [0:33] is the sub-list for field type_name +} + +func init() { file_rusk_proto_init() } +func file_rusk_proto_init() { + if File_rusk_proto != nil { + return + } + file_field_proto_init() + file_keys_proto_init() + file_note_proto_init() + file_transaction_proto_init() + file_consensus_proto_init() + if !protoimpl.UnsafeEnabled { + file_rusk_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EchoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EchoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BidList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Stake); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Provisioner); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateStateTransitionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContractCallTx); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SlashTransactionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WithdrawFeesTransactionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WithdrawStakeTransactionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WithdrawBidTransactionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StakeTransactionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BidTransactionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateStateTransitionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecuteStateTransitionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecuteStateTransitionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenerateSecretKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenerateSecretKeyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OwnedNotesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NewTransactionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyTransactionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KeysResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenerateScoreRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenerateScoreResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyScoreRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyScoreResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBalanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBalanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CalculateMempoolBalanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BinaryHashRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionHashRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HashRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rusk_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HashResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_rusk_proto_msgTypes[6].OneofWrappers = []interface{}{ + (*ContractCallTx_Tx)(nil), + (*ContractCallTx_Withdraw)(nil), + (*ContractCallTx_Stake)(nil), + (*ContractCallTx_Bid)(nil), + (*ContractCallTx_Slash)(nil), + (*ContractCallTx_Distribute)(nil), + (*ContractCallTx_WithdrawStake)(nil), + (*ContractCallTx_WithdrawBid)(nil), + } + file_rusk_proto_msgTypes[31].OneofWrappers = []interface{}{ + (*HashRequest_BinInputs)(nil), + (*HashRequest_TxInputs)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_rusk_proto_rawDesc, + NumEnums: 0, + NumMessages: 33, + NumExtensions: 0, + NumServices: 2, + }, + GoTypes: file_rusk_proto_goTypes, + DependencyIndexes: file_rusk_proto_depIdxs, + MessageInfos: file_rusk_proto_msgTypes, + }.Build() + File_rusk_proto = out.File + file_rusk_proto_rawDesc = nil + file_rusk_proto_goTypes = nil + file_rusk_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // RuskClient is the client API for Rusk service. // @@ -2008,10 +3073,10 @@ type RuskClient interface { } type ruskClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewRuskClient(cc *grpc.ClientConn) RuskClient { +func NewRuskClient(cc grpc.ClientConnInterface) RuskClient { return &ruskClient{cc} } @@ -2225,61 +3290,61 @@ type RuskServer interface { type UnimplementedRuskServer struct { } -func (*UnimplementedRuskServer) Echo(ctx context.Context, req *EchoRequest) (*EchoResponse, error) { +func (*UnimplementedRuskServer) Echo(context.Context, *EchoRequest) (*EchoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented") } -func (*UnimplementedRuskServer) ValidateStateTransition(ctx context.Context, req *ValidateStateTransitionRequest) (*ValidateStateTransitionResponse, error) { +func (*UnimplementedRuskServer) ValidateStateTransition(context.Context, *ValidateStateTransitionRequest) (*ValidateStateTransitionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidateStateTransition not implemented") } -func (*UnimplementedRuskServer) ExecuteStateTransition(ctx context.Context, req *ExecuteStateTransitionRequest) (*ExecuteStateTransitionResponse, error) { +func (*UnimplementedRuskServer) ExecuteStateTransition(context.Context, *ExecuteStateTransitionRequest) (*ExecuteStateTransitionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ExecuteStateTransition not implemented") } -func (*UnimplementedRuskServer) GenerateScore(ctx context.Context, req *GenerateScoreRequest) (*GenerateScoreResponse, error) { +func (*UnimplementedRuskServer) GenerateScore(context.Context, *GenerateScoreRequest) (*GenerateScoreResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GenerateScore not implemented") } -func (*UnimplementedRuskServer) VerifyScore(ctx context.Context, req *VerifyScoreRequest) (*VerifyScoreResponse, error) { +func (*UnimplementedRuskServer) VerifyScore(context.Context, *VerifyScoreRequest) (*VerifyScoreResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VerifyScore not implemented") } -func (*UnimplementedRuskServer) GenerateSecretKey(ctx context.Context, req *GenerateSecretKeyRequest) (*GenerateSecretKeyResponse, error) { +func (*UnimplementedRuskServer) GenerateSecretKey(context.Context, *GenerateSecretKeyRequest) (*GenerateSecretKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GenerateSecretKey not implemented") } -func (*UnimplementedRuskServer) Keys(ctx context.Context, req *SecretKey) (*KeysResponse, error) { +func (*UnimplementedRuskServer) Keys(context.Context, *SecretKey) (*KeysResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Keys not implemented") } -func (*UnimplementedRuskServer) FullScanOwnedNotes(ctx context.Context, req *ViewKey) (*OwnedNotesResponse, error) { +func (*UnimplementedRuskServer) FullScanOwnedNotes(context.Context, *ViewKey) (*OwnedNotesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FullScanOwnedNotes not implemented") } -func (*UnimplementedRuskServer) NewTransaction(ctx context.Context, req *NewTransactionRequest) (*Transaction, error) { +func (*UnimplementedRuskServer) NewTransaction(context.Context, *NewTransactionRequest) (*Transaction, error) { return nil, status.Errorf(codes.Unimplemented, "method NewTransaction not implemented") } -func (*UnimplementedRuskServer) GetBalance(ctx context.Context, req *GetBalanceRequest) (*GetBalanceResponse, error) { +func (*UnimplementedRuskServer) GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBalance not implemented") } -func (*UnimplementedRuskServer) VerifyTransaction(ctx context.Context, req *ContractCallTx) (*VerifyTransactionResponse, error) { +func (*UnimplementedRuskServer) VerifyTransaction(context.Context, *ContractCallTx) (*VerifyTransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VerifyTransaction not implemented") } -func (*UnimplementedRuskServer) CalculateMempoolBalance(ctx context.Context, req *CalculateMempoolBalanceRequest) (*GetBalanceResponse, error) { +func (*UnimplementedRuskServer) CalculateMempoolBalance(context.Context, *CalculateMempoolBalanceRequest) (*GetBalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CalculateMempoolBalance not implemented") } -func (*UnimplementedRuskServer) NewStake(ctx context.Context, req *StakeTransactionRequest) (*StakeTransaction, error) { +func (*UnimplementedRuskServer) NewStake(context.Context, *StakeTransactionRequest) (*StakeTransaction, error) { return nil, status.Errorf(codes.Unimplemented, "method NewStake not implemented") } -func (*UnimplementedRuskServer) VerifyStake(ctx context.Context, req *StakeTransaction) (*VerifyTransactionResponse, error) { +func (*UnimplementedRuskServer) VerifyStake(context.Context, *StakeTransaction) (*VerifyTransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VerifyStake not implemented") } -func (*UnimplementedRuskServer) NewWithdrawStake(ctx context.Context, req *WithdrawStakeTransactionRequest) (*WithdrawStakeTransaction, error) { +func (*UnimplementedRuskServer) NewWithdrawStake(context.Context, *WithdrawStakeTransactionRequest) (*WithdrawStakeTransaction, error) { return nil, status.Errorf(codes.Unimplemented, "method NewWithdrawStake not implemented") } -func (*UnimplementedRuskServer) NewBid(ctx context.Context, req *BidTransactionRequest) (*BidTransaction, error) { +func (*UnimplementedRuskServer) NewBid(context.Context, *BidTransactionRequest) (*BidTransaction, error) { return nil, status.Errorf(codes.Unimplemented, "method NewBid not implemented") } -func (*UnimplementedRuskServer) NewWithdrawBid(ctx context.Context, req *WithdrawBidTransactionRequest) (*WithdrawBidTransaction, error) { +func (*UnimplementedRuskServer) NewWithdrawBid(context.Context, *WithdrawBidTransactionRequest) (*WithdrawBidTransaction, error) { return nil, status.Errorf(codes.Unimplemented, "method NewWithdrawBid not implemented") } -func (*UnimplementedRuskServer) NewWithdrawFees(ctx context.Context, req *WithdrawFeesTransactionRequest) (*WithdrawFeesTransaction, error) { +func (*UnimplementedRuskServer) NewWithdrawFees(context.Context, *WithdrawFeesTransactionRequest) (*WithdrawFeesTransaction, error) { return nil, status.Errorf(codes.Unimplemented, "method NewWithdrawFees not implemented") } -func (*UnimplementedRuskServer) NewSlash(ctx context.Context, req *SlashTransactionRequest) (*SlashTransaction, error) { +func (*UnimplementedRuskServer) NewSlash(context.Context, *SlashTransactionRequest) (*SlashTransaction, error) { return nil, status.Errorf(codes.Unimplemented, "method NewSlash not implemented") } @@ -2723,10 +3788,10 @@ type CryptoClient interface { } type cryptoClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewCryptoClient(cc *grpc.ClientConn) CryptoClient { +func NewCryptoClient(cc grpc.ClientConnInterface) CryptoClient { return &cryptoClient{cc} } @@ -2749,7 +3814,7 @@ type CryptoServer interface { type UnimplementedCryptoServer struct { } -func (*UnimplementedCryptoServer) Hash(ctx context.Context, req *HashRequest) (*HashResponse, error) { +func (*UnimplementedCryptoServer) Hash(context.Context, *HashRequest) (*HashResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Hash not implemented") } diff --git a/autogen/go/rusk/transaction.pb.go b/autogen/go/rusk/transaction.pb.go index 14c2076..1bcef37 100644 --- a/autogen/go/rusk/transaction.pb.go +++ b/autogen/go/rusk/transaction.pb.go @@ -1,234 +1,377 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.21.0 +// protoc v3.11.4 // source: transaction.proto package rusk import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - math "math" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type TransactionInput struct { - Nullifier *Nullifier `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"` - MerkleRoot *Scalar `protobuf:"bytes,2,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TransactionInput) Reset() { *m = TransactionInput{} } -func (m *TransactionInput) String() string { return proto.CompactTextString(m) } -func (*TransactionInput) ProtoMessage() {} -func (*TransactionInput) Descriptor() ([]byte, []int) { - return fileDescriptor_2cc4e03d2c28c490, []int{0} + Nullifier *Nullifier `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"` + MerkleRoot *Scalar `protobuf:"bytes,2,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"` } -func (m *TransactionInput) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TransactionInput.Unmarshal(m, b) -} -func (m *TransactionInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TransactionInput.Marshal(b, m, deterministic) -} -func (m *TransactionInput) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransactionInput.Merge(m, src) + +func (x *TransactionInput) Reset() { + *x = TransactionInput{} + if protoimpl.UnsafeEnabled { + mi := &file_transaction_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TransactionInput) XXX_Size() int { - return xxx_messageInfo_TransactionInput.Size(m) + +func (x *TransactionInput) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TransactionInput) XXX_DiscardUnknown() { - xxx_messageInfo_TransactionInput.DiscardUnknown(m) + +func (*TransactionInput) ProtoMessage() {} + +func (x *TransactionInput) ProtoReflect() protoreflect.Message { + mi := &file_transaction_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TransactionInput proto.InternalMessageInfo +// Deprecated: Use TransactionInput.ProtoReflect.Descriptor instead. +func (*TransactionInput) Descriptor() ([]byte, []int) { + return file_transaction_proto_rawDescGZIP(), []int{0} +} -func (m *TransactionInput) GetNullifier() *Nullifier { - if m != nil { - return m.Nullifier +func (x *TransactionInput) GetNullifier() *Nullifier { + if x != nil { + return x.Nullifier } return nil } -func (m *TransactionInput) GetMerkleRoot() *Scalar { - if m != nil { - return m.MerkleRoot +func (x *TransactionInput) GetMerkleRoot() *Scalar { + if x != nil { + return x.MerkleRoot } return nil } type TransactionOutput struct { - Note *Note `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"` - Pk *PublicKey `protobuf:"bytes,2,opt,name=pk,proto3" json:"pk,omitempty"` - Value uint64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` - BlindingFactor *Scalar `protobuf:"bytes,4,opt,name=blinding_factor,json=blindingFactor,proto3" json:"blinding_factor,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TransactionOutput) Reset() { *m = TransactionOutput{} } -func (m *TransactionOutput) String() string { return proto.CompactTextString(m) } -func (*TransactionOutput) ProtoMessage() {} -func (*TransactionOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_2cc4e03d2c28c490, []int{1} -} -func (m *TransactionOutput) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TransactionOutput.Unmarshal(m, b) -} -func (m *TransactionOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TransactionOutput.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Note *Note `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"` + Pk *PublicKey `protobuf:"bytes,2,opt,name=pk,proto3" json:"pk,omitempty"` + Value uint64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` + BlindingFactor *Scalar `protobuf:"bytes,4,opt,name=blinding_factor,json=blindingFactor,proto3" json:"blinding_factor,omitempty"` } -func (m *TransactionOutput) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransactionOutput.Merge(m, src) + +func (x *TransactionOutput) Reset() { + *x = TransactionOutput{} + if protoimpl.UnsafeEnabled { + mi := &file_transaction_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TransactionOutput) XXX_Size() int { - return xxx_messageInfo_TransactionOutput.Size(m) + +func (x *TransactionOutput) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TransactionOutput) XXX_DiscardUnknown() { - xxx_messageInfo_TransactionOutput.DiscardUnknown(m) + +func (*TransactionOutput) ProtoMessage() {} + +func (x *TransactionOutput) ProtoReflect() protoreflect.Message { + mi := &file_transaction_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TransactionOutput proto.InternalMessageInfo +// Deprecated: Use TransactionOutput.ProtoReflect.Descriptor instead. +func (*TransactionOutput) Descriptor() ([]byte, []int) { + return file_transaction_proto_rawDescGZIP(), []int{1} +} -func (m *TransactionOutput) GetNote() *Note { - if m != nil { - return m.Note +func (x *TransactionOutput) GetNote() *Note { + if x != nil { + return x.Note } return nil } -func (m *TransactionOutput) GetPk() *PublicKey { - if m != nil { - return m.Pk +func (x *TransactionOutput) GetPk() *PublicKey { + if x != nil { + return x.Pk } return nil } -func (m *TransactionOutput) GetValue() uint64 { - if m != nil { - return m.Value +func (x *TransactionOutput) GetValue() uint64 { + if x != nil { + return x.Value } return 0 } -func (m *TransactionOutput) GetBlindingFactor() *Scalar { - if m != nil { - return m.BlindingFactor +func (x *TransactionOutput) GetBlindingFactor() *Scalar { + if x != nil { + return x.BlindingFactor } return nil } type Transaction struct { - Inputs []*TransactionInput `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"` - Outputs []*TransactionOutput `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"` - Fee *TransactionOutput `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` - Proof []byte `protobuf:"bytes,4,opt,name=proof,proto3" json:"proof,omitempty"` - Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Transaction) Reset() { *m = Transaction{} } -func (m *Transaction) String() string { return proto.CompactTextString(m) } -func (*Transaction) ProtoMessage() {} -func (*Transaction) Descriptor() ([]byte, []int) { - return fileDescriptor_2cc4e03d2c28c490, []int{2} -} -func (m *Transaction) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Transaction.Unmarshal(m, b) -} -func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Transaction.Marshal(b, m, deterministic) + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Inputs []*TransactionInput `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"` + Outputs []*TransactionOutput `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"` + Fee *TransactionOutput `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` + Proof []byte `protobuf:"bytes,4,opt,name=proof,proto3" json:"proof,omitempty"` + Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` } -func (m *Transaction) XXX_Merge(src proto.Message) { - xxx_messageInfo_Transaction.Merge(m, src) + +func (x *Transaction) Reset() { + *x = Transaction{} + if protoimpl.UnsafeEnabled { + mi := &file_transaction_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Transaction) XXX_Size() int { - return xxx_messageInfo_Transaction.Size(m) + +func (x *Transaction) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Transaction) XXX_DiscardUnknown() { - xxx_messageInfo_Transaction.DiscardUnknown(m) + +func (*Transaction) ProtoMessage() {} + +func (x *Transaction) ProtoReflect() protoreflect.Message { + mi := &file_transaction_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Transaction proto.InternalMessageInfo +// Deprecated: Use Transaction.ProtoReflect.Descriptor instead. +func (*Transaction) Descriptor() ([]byte, []int) { + return file_transaction_proto_rawDescGZIP(), []int{2} +} -func (m *Transaction) GetInputs() []*TransactionInput { - if m != nil { - return m.Inputs +func (x *Transaction) GetInputs() []*TransactionInput { + if x != nil { + return x.Inputs } return nil } -func (m *Transaction) GetOutputs() []*TransactionOutput { - if m != nil { - return m.Outputs +func (x *Transaction) GetOutputs() []*TransactionOutput { + if x != nil { + return x.Outputs } return nil } -func (m *Transaction) GetFee() *TransactionOutput { - if m != nil { - return m.Fee +func (x *Transaction) GetFee() *TransactionOutput { + if x != nil { + return x.Fee } return nil } -func (m *Transaction) GetProof() []byte { - if m != nil { - return m.Proof +func (x *Transaction) GetProof() []byte { + if x != nil { + return x.Proof } return nil } -func (m *Transaction) GetData() []byte { - if m != nil { - return m.Data +func (x *Transaction) GetData() []byte { + if x != nil { + return x.Data } return nil } -func init() { - proto.RegisterType((*TransactionInput)(nil), "rusk.TransactionInput") - proto.RegisterType((*TransactionOutput)(nil), "rusk.TransactionOutput") - proto.RegisterType((*Transaction)(nil), "rusk.Transaction") -} - -func init() { proto.RegisterFile("transaction.proto", fileDescriptor_2cc4e03d2c28c490) } - -var fileDescriptor_2cc4e03d2c28c490 = []byte{ - // 361 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x51, 0xab, 0xd3, 0x30, - 0x18, 0x86, 0x69, 0xd7, 0x4d, 0xfc, 0x3a, 0x9c, 0x0b, 0xa2, 0x65, 0x17, 0x3a, 0x76, 0x55, 0x85, - 0xb5, 0x38, 0xf1, 0x0f, 0x78, 0x21, 0x88, 0xa0, 0x12, 0xbd, 0xf2, 0x66, 0xa4, 0x6d, 0x5a, 0x43, - 0xb3, 0x7c, 0x25, 0x4d, 0x84, 0xfd, 0x9c, 0xf3, 0x63, 0xce, 0xff, 0x3a, 0x34, 0x69, 0xd9, 0x38, - 0xe7, 0x70, 0xee, 0xbe, 0x7c, 0x7d, 0xde, 0xbc, 0xef, 0x9b, 0xc2, 0xda, 0x68, 0xa6, 0x7a, 0x56, - 0x1a, 0x81, 0x2a, 0xeb, 0x34, 0x1a, 0x24, 0x91, 0xb6, 0x7d, 0xbb, 0x89, 0x6b, 0xc1, 0x65, 0xe5, - 0x57, 0x1b, 0x68, 0xf9, 0xb9, 0x9f, 0x66, 0x85, 0x86, 0xfb, 0x79, 0xd7, 0xc1, 0xcb, 0x3f, 0x17, - 0xfd, 0x37, 0xd5, 0x59, 0x43, 0xf6, 0xf0, 0x5c, 0x59, 0x29, 0x45, 0x2d, 0xb8, 0x4e, 0x82, 0x6d, - 0x90, 0xc6, 0x87, 0x55, 0x36, 0x5c, 0x99, 0xfd, 0x98, 0xd6, 0xf4, 0x42, 0x90, 0x3d, 0xc4, 0x27, - 0xae, 0x5b, 0xc9, 0x8f, 0x1a, 0xd1, 0x24, 0xa1, 0x13, 0x2c, 0xbd, 0xe0, 0x77, 0xc9, 0x24, 0xd3, - 0x14, 0x3c, 0x40, 0x11, 0xcd, 0xee, 0x26, 0x80, 0xf5, 0x95, 0xe5, 0x4f, 0x6b, 0x06, 0xcf, 0xb7, - 0x10, 0x0d, 0xa9, 0x46, 0x3b, 0x18, 0xed, 0xd0, 0x70, 0xea, 0xf6, 0xe4, 0x1d, 0x84, 0x5d, 0x3b, - 0xde, 0x3d, 0x86, 0xf9, 0x65, 0x0b, 0x29, 0xca, 0xef, 0xfc, 0x4c, 0xc3, 0xae, 0x25, 0xaf, 0x60, - 0xfe, 0x9f, 0x49, 0xcb, 0x93, 0xd9, 0x36, 0x48, 0x17, 0xd4, 0x1f, 0xc8, 0x67, 0x58, 0x15, 0x52, - 0xa8, 0x4a, 0xa8, 0xe6, 0x58, 0xb3, 0xd2, 0xa0, 0x4e, 0xa2, 0x47, 0xf2, 0xbd, 0x98, 0xa0, 0xaf, - 0x8e, 0xd9, 0xdd, 0x06, 0x10, 0x5f, 0x65, 0x24, 0x19, 0x2c, 0xc4, 0xf0, 0x34, 0x7d, 0x12, 0x6c, - 0x67, 0x69, 0x7c, 0x78, 0xed, 0xd5, 0xf7, 0x5f, 0x8e, 0x8e, 0x14, 0xf9, 0x08, 0xcf, 0xd0, 0xf5, - 0xea, 0x93, 0xd0, 0x09, 0xde, 0x3c, 0x10, 0xf8, 0xde, 0x74, 0xe2, 0xc8, 0x7b, 0x98, 0xd5, 0xdc, - 0xa7, 0x7f, 0x02, 0x1f, 0x98, 0xa1, 0x6a, 0xa7, 0x11, 0x6b, 0x57, 0x65, 0x49, 0xfd, 0x81, 0x10, - 0x88, 0x2a, 0x66, 0x58, 0x32, 0x77, 0x4b, 0x37, 0x7f, 0xf9, 0xf0, 0x37, 0x6d, 0x84, 0xf9, 0x67, - 0x8b, 0xac, 0xc4, 0x53, 0x5e, 0xd9, 0xbe, 0xdd, 0xbb, 0xdf, 0x5e, 0xd8, 0x3a, 0x67, 0xd6, 0x60, - 0xc3, 0x55, 0xde, 0x60, 0x3e, 0x98, 0x15, 0x0b, 0xf7, 0xe5, 0xd3, 0x5d, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x63, 0x4c, 0x79, 0x1d, 0x50, 0x02, 0x00, 0x00, +var File_transaction_proto protoreflect.FileDescriptor + +var file_transaction_proto_rawDesc = []byte{ + 0x0a, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x72, 0x75, 0x73, 0x6b, 0x1a, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x0a, 0x6e, 0x6f, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x70, + 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x70, + 0x75, 0x74, 0x12, 0x2d, 0x0a, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4e, 0x75, 0x6c, + 0x6c, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x12, 0x2d, 0x0a, 0x0b, 0x6d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x6f, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x63, + 0x61, 0x6c, 0x61, 0x72, 0x52, 0x0a, 0x6d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x52, 0x6f, 0x6f, 0x74, + 0x22, 0xa1, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x1e, 0x0a, 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4e, 0x6f, 0x74, 0x65, + 0x52, 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x02, 0x70, 0x6b, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x4b, 0x65, 0x79, 0x52, 0x02, 0x70, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x35, 0x0a, + 0x0f, 0x62, 0x6c, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x63, + 0x61, 0x6c, 0x61, 0x72, 0x52, 0x0e, 0x62, 0x6c, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x46, 0x61, + 0x63, 0x74, 0x6f, 0x72, 0x22, 0xc5, 0x01, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x06, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x73, 0x12, 0x31, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x07, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x29, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x03, 0x66, + 0x65, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x2a, 0x5a, 0x28, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, 0x6b, 0x2d, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x67, 0x65, 0x6e, + 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x75, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_transaction_proto_rawDescOnce sync.Once + file_transaction_proto_rawDescData = file_transaction_proto_rawDesc +) + +func file_transaction_proto_rawDescGZIP() []byte { + file_transaction_proto_rawDescOnce.Do(func() { + file_transaction_proto_rawDescData = protoimpl.X.CompressGZIP(file_transaction_proto_rawDescData) + }) + return file_transaction_proto_rawDescData +} + +var file_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_transaction_proto_goTypes = []interface{}{ + (*TransactionInput)(nil), // 0: rusk.TransactionInput + (*TransactionOutput)(nil), // 1: rusk.TransactionOutput + (*Transaction)(nil), // 2: rusk.Transaction + (*Nullifier)(nil), // 3: rusk.Nullifier + (*Scalar)(nil), // 4: rusk.Scalar + (*Note)(nil), // 5: rusk.Note + (*PublicKey)(nil), // 6: rusk.PublicKey +} +var file_transaction_proto_depIdxs = []int32{ + 3, // 0: rusk.TransactionInput.nullifier:type_name -> rusk.Nullifier + 4, // 1: rusk.TransactionInput.merkle_root:type_name -> rusk.Scalar + 5, // 2: rusk.TransactionOutput.note:type_name -> rusk.Note + 6, // 3: rusk.TransactionOutput.pk:type_name -> rusk.PublicKey + 4, // 4: rusk.TransactionOutput.blinding_factor:type_name -> rusk.Scalar + 0, // 5: rusk.Transaction.inputs:type_name -> rusk.TransactionInput + 1, // 6: rusk.Transaction.outputs:type_name -> rusk.TransactionOutput + 1, // 7: rusk.Transaction.fee:type_name -> rusk.TransactionOutput + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_transaction_proto_init() } +func file_transaction_proto_init() { + if File_transaction_proto != nil { + return + } + file_field_proto_init() + file_keys_proto_init() + file_note_proto_init() + if !protoimpl.UnsafeEnabled { + file_transaction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionInput); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transaction_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionOutput); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transaction_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Transaction); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_transaction_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_transaction_proto_goTypes, + DependencyIndexes: file_transaction_proto_depIdxs, + MessageInfos: file_transaction_proto_msgTypes, + }.Build() + File_transaction_proto = out.File + file_transaction_proto_rawDesc = nil + file_transaction_proto_goTypes = nil + file_transaction_proto_depIdxs = nil } diff --git a/node/node.proto b/node/node.proto index f5a75d9..8dc89b4 100644 --- a/node/node.proto +++ b/node/node.proto @@ -11,6 +11,11 @@ message GenericResponse { string response = 1; } +service Auth { + rpc CreateSession(SessionRequest) returns (Session) {}; + rpc DropSession(EmptyRequest) returns (GenericResponse) {}; +} + service Wallet { rpc CreateWallet(CreateRequest) returns (LoadResponse) {}; rpc LoadWallet(LoadRequest) returns (LoadResponse) {}; diff --git a/node/wallet.proto b/node/wallet.proto index f15e9e1..c4d133b 100644 --- a/node/wallet.proto +++ b/node/wallet.proto @@ -17,6 +17,15 @@ message LoadRequest { string password = 1; } +message SessionRequest { + bytes ed_pk = 1; + bytes ed_sig = 2; +} + +message Session { + string access_token = 1; +} + message LoadResponse { PubKey key = 1; }