github.com/prysmaticlabs/prysm@v1.4.4/proto/validator/accounts/v2/keymanager.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.15.8 5 // source: proto/validator/accounts/v2/keymanager.proto 6 7 package ethereum_validator_accounts_v2 8 9 import ( 10 context "context" 11 reflect "reflect" 12 sync "sync" 13 14 proto "github.com/golang/protobuf/proto" 15 empty "github.com/golang/protobuf/ptypes/empty" 16 github_com_prysmaticlabs_eth2_types "github.com/prysmaticlabs/eth2-types" 17 _ "github.com/prysmaticlabs/prysm/proto/eth/ext" 18 v1alpha1 "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1" 19 v2 "github.com/prysmaticlabs/prysm/proto/prysm/v2" 20 _ "google.golang.org/genproto/googleapis/api/annotations" 21 grpc "google.golang.org/grpc" 22 codes "google.golang.org/grpc/codes" 23 status "google.golang.org/grpc/status" 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 ) 27 28 const ( 29 // Verify that this generated code is sufficiently up-to-date. 30 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 31 // Verify that runtime/protoimpl is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 33 ) 34 35 // This is a compile-time assertion that a sufficiently up-to-date version 36 // of the legacy proto package is being used. 37 const _ = proto.ProtoPackageIsVersion4 38 39 type SignResponse_Status int32 40 41 const ( 42 SignResponse_UNKNOWN SignResponse_Status = 0 43 SignResponse_SUCCEEDED SignResponse_Status = 1 44 SignResponse_DENIED SignResponse_Status = 2 45 SignResponse_FAILED SignResponse_Status = 3 46 ) 47 48 // Enum value maps for SignResponse_Status. 49 var ( 50 SignResponse_Status_name = map[int32]string{ 51 0: "UNKNOWN", 52 1: "SUCCEEDED", 53 2: "DENIED", 54 3: "FAILED", 55 } 56 SignResponse_Status_value = map[string]int32{ 57 "UNKNOWN": 0, 58 "SUCCEEDED": 1, 59 "DENIED": 2, 60 "FAILED": 3, 61 } 62 ) 63 64 func (x SignResponse_Status) Enum() *SignResponse_Status { 65 p := new(SignResponse_Status) 66 *p = x 67 return p 68 } 69 70 func (x SignResponse_Status) String() string { 71 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 72 } 73 74 func (SignResponse_Status) Descriptor() protoreflect.EnumDescriptor { 75 return file_proto_validator_accounts_v2_keymanager_proto_enumTypes[0].Descriptor() 76 } 77 78 func (SignResponse_Status) Type() protoreflect.EnumType { 79 return &file_proto_validator_accounts_v2_keymanager_proto_enumTypes[0] 80 } 81 82 func (x SignResponse_Status) Number() protoreflect.EnumNumber { 83 return protoreflect.EnumNumber(x) 84 } 85 86 // Deprecated: Use SignResponse_Status.Descriptor instead. 87 func (SignResponse_Status) EnumDescriptor() ([]byte, []int) { 88 return file_proto_validator_accounts_v2_keymanager_proto_rawDescGZIP(), []int{2, 0} 89 } 90 91 type ListPublicKeysResponse struct { 92 state protoimpl.MessageState 93 sizeCache protoimpl.SizeCache 94 unknownFields protoimpl.UnknownFields 95 96 ValidatingPublicKeys [][]byte `protobuf:"bytes,2,rep,name=validating_public_keys,json=validatingPublicKeys,proto3" json:"validating_public_keys,omitempty"` 97 } 98 99 func (x *ListPublicKeysResponse) Reset() { 100 *x = ListPublicKeysResponse{} 101 if protoimpl.UnsafeEnabled { 102 mi := &file_proto_validator_accounts_v2_keymanager_proto_msgTypes[0] 103 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 104 ms.StoreMessageInfo(mi) 105 } 106 } 107 108 func (x *ListPublicKeysResponse) String() string { 109 return protoimpl.X.MessageStringOf(x) 110 } 111 112 func (*ListPublicKeysResponse) ProtoMessage() {} 113 114 func (x *ListPublicKeysResponse) ProtoReflect() protoreflect.Message { 115 mi := &file_proto_validator_accounts_v2_keymanager_proto_msgTypes[0] 116 if protoimpl.UnsafeEnabled && x != nil { 117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 118 if ms.LoadMessageInfo() == nil { 119 ms.StoreMessageInfo(mi) 120 } 121 return ms 122 } 123 return mi.MessageOf(x) 124 } 125 126 // Deprecated: Use ListPublicKeysResponse.ProtoReflect.Descriptor instead. 127 func (*ListPublicKeysResponse) Descriptor() ([]byte, []int) { 128 return file_proto_validator_accounts_v2_keymanager_proto_rawDescGZIP(), []int{0} 129 } 130 131 func (x *ListPublicKeysResponse) GetValidatingPublicKeys() [][]byte { 132 if x != nil { 133 return x.ValidatingPublicKeys 134 } 135 return nil 136 } 137 138 type SignRequest struct { 139 state protoimpl.MessageState 140 sizeCache protoimpl.SizeCache 141 unknownFields protoimpl.UnknownFields 142 143 PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` 144 SigningRoot []byte `protobuf:"bytes,2,opt,name=signing_root,json=signingRoot,proto3" json:"signing_root,omitempty"` 145 SignatureDomain []byte `protobuf:"bytes,3,opt,name=signature_domain,json=signatureDomain,proto3" json:"signature_domain,omitempty"` 146 // Types that are assignable to Object: 147 // *SignRequest_Block 148 // *SignRequest_AttestationData 149 // *SignRequest_AggregateAttestationAndProof 150 // *SignRequest_Exit 151 // *SignRequest_Slot 152 // *SignRequest_Epoch 153 // *SignRequest_BlockV2 154 Object isSignRequest_Object `protobuf_oneof:"object"` 155 } 156 157 func (x *SignRequest) Reset() { 158 *x = SignRequest{} 159 if protoimpl.UnsafeEnabled { 160 mi := &file_proto_validator_accounts_v2_keymanager_proto_msgTypes[1] 161 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 162 ms.StoreMessageInfo(mi) 163 } 164 } 165 166 func (x *SignRequest) String() string { 167 return protoimpl.X.MessageStringOf(x) 168 } 169 170 func (*SignRequest) ProtoMessage() {} 171 172 func (x *SignRequest) ProtoReflect() protoreflect.Message { 173 mi := &file_proto_validator_accounts_v2_keymanager_proto_msgTypes[1] 174 if protoimpl.UnsafeEnabled && x != nil { 175 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 176 if ms.LoadMessageInfo() == nil { 177 ms.StoreMessageInfo(mi) 178 } 179 return ms 180 } 181 return mi.MessageOf(x) 182 } 183 184 // Deprecated: Use SignRequest.ProtoReflect.Descriptor instead. 185 func (*SignRequest) Descriptor() ([]byte, []int) { 186 return file_proto_validator_accounts_v2_keymanager_proto_rawDescGZIP(), []int{1} 187 } 188 189 func (x *SignRequest) GetPublicKey() []byte { 190 if x != nil { 191 return x.PublicKey 192 } 193 return nil 194 } 195 196 func (x *SignRequest) GetSigningRoot() []byte { 197 if x != nil { 198 return x.SigningRoot 199 } 200 return nil 201 } 202 203 func (x *SignRequest) GetSignatureDomain() []byte { 204 if x != nil { 205 return x.SignatureDomain 206 } 207 return nil 208 } 209 210 func (m *SignRequest) GetObject() isSignRequest_Object { 211 if m != nil { 212 return m.Object 213 } 214 return nil 215 } 216 217 func (x *SignRequest) GetBlock() *v1alpha1.BeaconBlock { 218 if x, ok := x.GetObject().(*SignRequest_Block); ok { 219 return x.Block 220 } 221 return nil 222 } 223 224 func (x *SignRequest) GetAttestationData() *v1alpha1.AttestationData { 225 if x, ok := x.GetObject().(*SignRequest_AttestationData); ok { 226 return x.AttestationData 227 } 228 return nil 229 } 230 231 func (x *SignRequest) GetAggregateAttestationAndProof() *v1alpha1.AggregateAttestationAndProof { 232 if x, ok := x.GetObject().(*SignRequest_AggregateAttestationAndProof); ok { 233 return x.AggregateAttestationAndProof 234 } 235 return nil 236 } 237 238 func (x *SignRequest) GetExit() *v1alpha1.VoluntaryExit { 239 if x, ok := x.GetObject().(*SignRequest_Exit); ok { 240 return x.Exit 241 } 242 return nil 243 } 244 245 func (x *SignRequest) GetSlot() github_com_prysmaticlabs_eth2_types.Slot { 246 if x, ok := x.GetObject().(*SignRequest_Slot); ok { 247 return x.Slot 248 } 249 return github_com_prysmaticlabs_eth2_types.Slot(0) 250 } 251 252 func (x *SignRequest) GetEpoch() github_com_prysmaticlabs_eth2_types.Epoch { 253 if x, ok := x.GetObject().(*SignRequest_Epoch); ok { 254 return x.Epoch 255 } 256 return github_com_prysmaticlabs_eth2_types.Epoch(0) 257 } 258 259 func (x *SignRequest) GetBlockV2() *v2.BeaconBlockAltair { 260 if x, ok := x.GetObject().(*SignRequest_BlockV2); ok { 261 return x.BlockV2 262 } 263 return nil 264 } 265 266 type isSignRequest_Object interface { 267 isSignRequest_Object() 268 } 269 270 type SignRequest_Block struct { 271 Block *v1alpha1.BeaconBlock `protobuf:"bytes,101,opt,name=block,proto3,oneof"` 272 } 273 274 type SignRequest_AttestationData struct { 275 AttestationData *v1alpha1.AttestationData `protobuf:"bytes,102,opt,name=attestation_data,json=attestationData,proto3,oneof"` 276 } 277 278 type SignRequest_AggregateAttestationAndProof struct { 279 AggregateAttestationAndProof *v1alpha1.AggregateAttestationAndProof `protobuf:"bytes,103,opt,name=aggregate_attestation_and_proof,json=aggregateAttestationAndProof,proto3,oneof"` 280 } 281 282 type SignRequest_Exit struct { 283 Exit *v1alpha1.VoluntaryExit `protobuf:"bytes,104,opt,name=exit,proto3,oneof"` 284 } 285 286 type SignRequest_Slot struct { 287 Slot github_com_prysmaticlabs_eth2_types.Slot `protobuf:"varint,105,opt,name=slot,proto3,oneof" cast-type:"github.com/prysmaticlabs/eth2-types.Slot"` 288 } 289 290 type SignRequest_Epoch struct { 291 Epoch github_com_prysmaticlabs_eth2_types.Epoch `protobuf:"varint,106,opt,name=epoch,proto3,oneof" cast-type:"github.com/prysmaticlabs/eth2-types.Epoch"` 292 } 293 294 type SignRequest_BlockV2 struct { 295 BlockV2 *v2.BeaconBlockAltair `protobuf:"bytes,107,opt,name=blockV2,proto3,oneof"` 296 } 297 298 func (*SignRequest_Block) isSignRequest_Object() {} 299 300 func (*SignRequest_AttestationData) isSignRequest_Object() {} 301 302 func (*SignRequest_AggregateAttestationAndProof) isSignRequest_Object() {} 303 304 func (*SignRequest_Exit) isSignRequest_Object() {} 305 306 func (*SignRequest_Slot) isSignRequest_Object() {} 307 308 func (*SignRequest_Epoch) isSignRequest_Object() {} 309 310 func (*SignRequest_BlockV2) isSignRequest_Object() {} 311 312 type SignResponse struct { 313 state protoimpl.MessageState 314 sizeCache protoimpl.SizeCache 315 unknownFields protoimpl.UnknownFields 316 317 Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` 318 Status SignResponse_Status `protobuf:"varint,2,opt,name=status,proto3,enum=ethereum.validator.accounts.v2.SignResponse_Status" json:"status,omitempty"` 319 } 320 321 func (x *SignResponse) Reset() { 322 *x = SignResponse{} 323 if protoimpl.UnsafeEnabled { 324 mi := &file_proto_validator_accounts_v2_keymanager_proto_msgTypes[2] 325 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 326 ms.StoreMessageInfo(mi) 327 } 328 } 329 330 func (x *SignResponse) String() string { 331 return protoimpl.X.MessageStringOf(x) 332 } 333 334 func (*SignResponse) ProtoMessage() {} 335 336 func (x *SignResponse) ProtoReflect() protoreflect.Message { 337 mi := &file_proto_validator_accounts_v2_keymanager_proto_msgTypes[2] 338 if protoimpl.UnsafeEnabled && x != nil { 339 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 340 if ms.LoadMessageInfo() == nil { 341 ms.StoreMessageInfo(mi) 342 } 343 return ms 344 } 345 return mi.MessageOf(x) 346 } 347 348 // Deprecated: Use SignResponse.ProtoReflect.Descriptor instead. 349 func (*SignResponse) Descriptor() ([]byte, []int) { 350 return file_proto_validator_accounts_v2_keymanager_proto_rawDescGZIP(), []int{2} 351 } 352 353 func (x *SignResponse) GetSignature() []byte { 354 if x != nil { 355 return x.Signature 356 } 357 return nil 358 } 359 360 func (x *SignResponse) GetStatus() SignResponse_Status { 361 if x != nil { 362 return x.Status 363 } 364 return SignResponse_UNKNOWN 365 } 366 367 var File_proto_validator_accounts_v2_keymanager_proto protoreflect.FileDescriptor 368 369 var file_proto_validator_accounts_v2_keymanager_proto_rawDesc = []byte{ 370 0x0a, 0x2c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 371 0x72, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6b, 0x65, 372 0x79, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 373 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 374 0x6f, 0x72, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x1b, 375 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x65, 0x78, 0x74, 0x2f, 0x6f, 0x70, 376 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x70, 0x72, 0x6f, 377 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 378 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 379 0x6f, 0x1a, 0x25, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x61, 380 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x5f, 0x62, 0x6c, 0x6f, 381 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 382 0x70, 0x72, 0x79, 0x73, 0x6d, 0x2f, 0x76, 0x32, 0x2f, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x5f, 383 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 384 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 385 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 386 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 387 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4e, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 388 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 389 0x12, 0x34, 0x0a, 0x16, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 390 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 391 0x52, 0x14, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x62, 0x6c, 392 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x9c, 0x05, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x52, 393 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 394 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 395 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 396 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x73, 0x69, 0x67, 397 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 398 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 399 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x44, 0x6f, 0x6d, 400 0x61, 0x69, 0x6e, 0x12, 0x3a, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x65, 0x20, 0x01, 401 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 402 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x65, 0x61, 0x63, 0x6f, 403 0x6e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x00, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 404 0x53, 0x0a, 0x10, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 405 0x61, 0x74, 0x61, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, 0x74, 0x68, 0x65, 406 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 407 0x31, 0x2e, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 408 0x61, 0x48, 0x00, 0x52, 0x0f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 409 0x44, 0x61, 0x74, 0x61, 0x12, 0x7c, 0x0a, 0x1f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 410 0x65, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6e, 411 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 412 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x61, 413 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x41, 414 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x64, 0x50, 0x72, 0x6f, 415 0x6f, 0x66, 0x48, 0x00, 0x52, 0x1c, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x41, 416 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x64, 0x50, 0x72, 0x6f, 417 0x6f, 0x66, 0x12, 0x3a, 0x0a, 0x04, 0x65, 0x78, 0x69, 0x74, 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, 418 0x32, 0x24, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x65, 0x74, 0x68, 0x2e, 419 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6e, 0x74, 0x61, 420 0x72, 0x79, 0x45, 0x78, 0x69, 0x74, 0x48, 0x00, 0x52, 0x04, 0x65, 0x78, 0x69, 0x74, 0x12, 0x42, 421 0x0a, 0x04, 0x73, 0x6c, 0x6f, 0x74, 0x18, 0x69, 0x20, 0x01, 0x28, 0x04, 0x42, 0x2c, 0x82, 0xb5, 422 0x18, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x79, 423 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x65, 0x74, 0x68, 0x32, 0x2d, 424 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x53, 0x6c, 0x6f, 0x74, 0x48, 0x00, 0x52, 0x04, 0x73, 0x6c, 425 0x6f, 0x74, 0x12, 0x45, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x6a, 0x20, 0x01, 0x28, 426 0x04, 0x42, 0x2d, 0x82, 0xb5, 0x18, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 427 0x6d, 0x2f, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 428 0x65, 0x74, 0x68, 0x32, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 429 0x48, 0x00, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x40, 0x0a, 0x07, 0x62, 0x6c, 0x6f, 430 0x63, 0x6b, 0x56, 0x32, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x65, 0x74, 0x68, 431 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x2e, 0x76, 0x32, 0x2e, 0x42, 432 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x6c, 0x74, 0x61, 0x69, 0x72, 433 0x48, 0x00, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x56, 0x32, 0x42, 0x08, 0x0a, 0x06, 0x6f, 434 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0xb7, 0x01, 0x0a, 0x0c, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 435 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 436 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 437 0x74, 0x75, 0x72, 0x65, 0x12, 0x4b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 438 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 439 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 440 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 441 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 442 0x73, 0x22, 0x3c, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 443 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 444 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4e, 0x49, 0x45, 445 0x44, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 446 0xa7, 0x02, 0x0a, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 447 0x12, 0x90, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 448 0x69, 0x6e, 0x67, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x16, 0x2e, 449 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 450 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x36, 0x2e, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 451 0x2e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 452 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 453 0x63, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 454 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 455 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 456 0x6e, 0x74, 0x73, 0x12, 0x83, 0x01, 0x0a, 0x04, 0x53, 0x69, 0x67, 0x6e, 0x12, 0x2b, 0x2e, 0x65, 457 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 458 0x72, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x69, 459 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x65, 0x74, 0x68, 0x65, 460 0x72, 0x65, 0x75, 0x6d, 0x2e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x61, 461 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 462 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 463 0x18, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 464 0x6d, 0x6f, 0x74, 0x65, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 465 0x33, 466 } 467 468 var ( 469 file_proto_validator_accounts_v2_keymanager_proto_rawDescOnce sync.Once 470 file_proto_validator_accounts_v2_keymanager_proto_rawDescData = file_proto_validator_accounts_v2_keymanager_proto_rawDesc 471 ) 472 473 func file_proto_validator_accounts_v2_keymanager_proto_rawDescGZIP() []byte { 474 file_proto_validator_accounts_v2_keymanager_proto_rawDescOnce.Do(func() { 475 file_proto_validator_accounts_v2_keymanager_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_validator_accounts_v2_keymanager_proto_rawDescData) 476 }) 477 return file_proto_validator_accounts_v2_keymanager_proto_rawDescData 478 } 479 480 var file_proto_validator_accounts_v2_keymanager_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 481 var file_proto_validator_accounts_v2_keymanager_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 482 var file_proto_validator_accounts_v2_keymanager_proto_goTypes = []interface{}{ 483 (SignResponse_Status)(0), // 0: ethereum.validator.accounts.v2.SignResponse.Status 484 (*ListPublicKeysResponse)(nil), // 1: ethereum.validator.accounts.v2.ListPublicKeysResponse 485 (*SignRequest)(nil), // 2: ethereum.validator.accounts.v2.SignRequest 486 (*SignResponse)(nil), // 3: ethereum.validator.accounts.v2.SignResponse 487 (*v1alpha1.BeaconBlock)(nil), // 4: ethereum.eth.v1alpha1.BeaconBlock 488 (*v1alpha1.AttestationData)(nil), // 5: ethereum.eth.v1alpha1.AttestationData 489 (*v1alpha1.AggregateAttestationAndProof)(nil), // 6: ethereum.eth.v1alpha1.AggregateAttestationAndProof 490 (*v1alpha1.VoluntaryExit)(nil), // 7: ethereum.eth.v1alpha1.VoluntaryExit 491 (*v2.BeaconBlockAltair)(nil), // 8: ethereum.prysm.v2.BeaconBlockAltair 492 (*empty.Empty)(nil), // 9: google.protobuf.Empty 493 } 494 var file_proto_validator_accounts_v2_keymanager_proto_depIdxs = []int32{ 495 4, // 0: ethereum.validator.accounts.v2.SignRequest.block:type_name -> ethereum.eth.v1alpha1.BeaconBlock 496 5, // 1: ethereum.validator.accounts.v2.SignRequest.attestation_data:type_name -> ethereum.eth.v1alpha1.AttestationData 497 6, // 2: ethereum.validator.accounts.v2.SignRequest.aggregate_attestation_and_proof:type_name -> ethereum.eth.v1alpha1.AggregateAttestationAndProof 498 7, // 3: ethereum.validator.accounts.v2.SignRequest.exit:type_name -> ethereum.eth.v1alpha1.VoluntaryExit 499 8, // 4: ethereum.validator.accounts.v2.SignRequest.blockV2:type_name -> ethereum.prysm.v2.BeaconBlockAltair 500 0, // 5: ethereum.validator.accounts.v2.SignResponse.status:type_name -> ethereum.validator.accounts.v2.SignResponse.Status 501 9, // 6: ethereum.validator.accounts.v2.RemoteSigner.ListValidatingPublicKeys:input_type -> google.protobuf.Empty 502 2, // 7: ethereum.validator.accounts.v2.RemoteSigner.Sign:input_type -> ethereum.validator.accounts.v2.SignRequest 503 1, // 8: ethereum.validator.accounts.v2.RemoteSigner.ListValidatingPublicKeys:output_type -> ethereum.validator.accounts.v2.ListPublicKeysResponse 504 3, // 9: ethereum.validator.accounts.v2.RemoteSigner.Sign:output_type -> ethereum.validator.accounts.v2.SignResponse 505 8, // [8:10] is the sub-list for method output_type 506 6, // [6:8] is the sub-list for method input_type 507 6, // [6:6] is the sub-list for extension type_name 508 6, // [6:6] is the sub-list for extension extendee 509 0, // [0:6] is the sub-list for field type_name 510 } 511 512 func init() { file_proto_validator_accounts_v2_keymanager_proto_init() } 513 func file_proto_validator_accounts_v2_keymanager_proto_init() { 514 if File_proto_validator_accounts_v2_keymanager_proto != nil { 515 return 516 } 517 if !protoimpl.UnsafeEnabled { 518 file_proto_validator_accounts_v2_keymanager_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 519 switch v := v.(*ListPublicKeysResponse); i { 520 case 0: 521 return &v.state 522 case 1: 523 return &v.sizeCache 524 case 2: 525 return &v.unknownFields 526 default: 527 return nil 528 } 529 } 530 file_proto_validator_accounts_v2_keymanager_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 531 switch v := v.(*SignRequest); i { 532 case 0: 533 return &v.state 534 case 1: 535 return &v.sizeCache 536 case 2: 537 return &v.unknownFields 538 default: 539 return nil 540 } 541 } 542 file_proto_validator_accounts_v2_keymanager_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 543 switch v := v.(*SignResponse); i { 544 case 0: 545 return &v.state 546 case 1: 547 return &v.sizeCache 548 case 2: 549 return &v.unknownFields 550 default: 551 return nil 552 } 553 } 554 } 555 file_proto_validator_accounts_v2_keymanager_proto_msgTypes[1].OneofWrappers = []interface{}{ 556 (*SignRequest_Block)(nil), 557 (*SignRequest_AttestationData)(nil), 558 (*SignRequest_AggregateAttestationAndProof)(nil), 559 (*SignRequest_Exit)(nil), 560 (*SignRequest_Slot)(nil), 561 (*SignRequest_Epoch)(nil), 562 (*SignRequest_BlockV2)(nil), 563 } 564 type x struct{} 565 out := protoimpl.TypeBuilder{ 566 File: protoimpl.DescBuilder{ 567 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 568 RawDescriptor: file_proto_validator_accounts_v2_keymanager_proto_rawDesc, 569 NumEnums: 1, 570 NumMessages: 3, 571 NumExtensions: 0, 572 NumServices: 1, 573 }, 574 GoTypes: file_proto_validator_accounts_v2_keymanager_proto_goTypes, 575 DependencyIndexes: file_proto_validator_accounts_v2_keymanager_proto_depIdxs, 576 EnumInfos: file_proto_validator_accounts_v2_keymanager_proto_enumTypes, 577 MessageInfos: file_proto_validator_accounts_v2_keymanager_proto_msgTypes, 578 }.Build() 579 File_proto_validator_accounts_v2_keymanager_proto = out.File 580 file_proto_validator_accounts_v2_keymanager_proto_rawDesc = nil 581 file_proto_validator_accounts_v2_keymanager_proto_goTypes = nil 582 file_proto_validator_accounts_v2_keymanager_proto_depIdxs = nil 583 } 584 585 // Reference imports to suppress errors if they are not otherwise used. 586 var _ context.Context 587 var _ grpc.ClientConnInterface 588 589 // This is a compile-time assertion to ensure that this generated file 590 // is compatible with the grpc package it is being compiled against. 591 const _ = grpc.SupportPackageIsVersion6 592 593 // RemoteSignerClient is the client API for RemoteSigner service. 594 // 595 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 596 type RemoteSignerClient interface { 597 ListValidatingPublicKeys(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListPublicKeysResponse, error) 598 Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) 599 } 600 601 type remoteSignerClient struct { 602 cc grpc.ClientConnInterface 603 } 604 605 func NewRemoteSignerClient(cc grpc.ClientConnInterface) RemoteSignerClient { 606 return &remoteSignerClient{cc} 607 } 608 609 func (c *remoteSignerClient) ListValidatingPublicKeys(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListPublicKeysResponse, error) { 610 out := new(ListPublicKeysResponse) 611 err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.RemoteSigner/ListValidatingPublicKeys", in, out, opts...) 612 if err != nil { 613 return nil, err 614 } 615 return out, nil 616 } 617 618 func (c *remoteSignerClient) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) { 619 out := new(SignResponse) 620 err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.RemoteSigner/Sign", in, out, opts...) 621 if err != nil { 622 return nil, err 623 } 624 return out, nil 625 } 626 627 // RemoteSignerServer is the server API for RemoteSigner service. 628 type RemoteSignerServer interface { 629 ListValidatingPublicKeys(context.Context, *empty.Empty) (*ListPublicKeysResponse, error) 630 Sign(context.Context, *SignRequest) (*SignResponse, error) 631 } 632 633 // UnimplementedRemoteSignerServer can be embedded to have forward compatible implementations. 634 type UnimplementedRemoteSignerServer struct { 635 } 636 637 func (*UnimplementedRemoteSignerServer) ListValidatingPublicKeys(context.Context, *empty.Empty) (*ListPublicKeysResponse, error) { 638 return nil, status.Errorf(codes.Unimplemented, "method ListValidatingPublicKeys not implemented") 639 } 640 func (*UnimplementedRemoteSignerServer) Sign(context.Context, *SignRequest) (*SignResponse, error) { 641 return nil, status.Errorf(codes.Unimplemented, "method Sign not implemented") 642 } 643 644 func RegisterRemoteSignerServer(s *grpc.Server, srv RemoteSignerServer) { 645 s.RegisterService(&_RemoteSigner_serviceDesc, srv) 646 } 647 648 func _RemoteSigner_ListValidatingPublicKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 649 in := new(empty.Empty) 650 if err := dec(in); err != nil { 651 return nil, err 652 } 653 if interceptor == nil { 654 return srv.(RemoteSignerServer).ListValidatingPublicKeys(ctx, in) 655 } 656 info := &grpc.UnaryServerInfo{ 657 Server: srv, 658 FullMethod: "/ethereum.validator.accounts.v2.RemoteSigner/ListValidatingPublicKeys", 659 } 660 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 661 return srv.(RemoteSignerServer).ListValidatingPublicKeys(ctx, req.(*empty.Empty)) 662 } 663 return interceptor(ctx, in, info, handler) 664 } 665 666 func _RemoteSigner_Sign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 667 in := new(SignRequest) 668 if err := dec(in); err != nil { 669 return nil, err 670 } 671 if interceptor == nil { 672 return srv.(RemoteSignerServer).Sign(ctx, in) 673 } 674 info := &grpc.UnaryServerInfo{ 675 Server: srv, 676 FullMethod: "/ethereum.validator.accounts.v2.RemoteSigner/Sign", 677 } 678 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 679 return srv.(RemoteSignerServer).Sign(ctx, req.(*SignRequest)) 680 } 681 return interceptor(ctx, in, info, handler) 682 } 683 684 var _RemoteSigner_serviceDesc = grpc.ServiceDesc{ 685 ServiceName: "ethereum.validator.accounts.v2.RemoteSigner", 686 HandlerType: (*RemoteSignerServer)(nil), 687 Methods: []grpc.MethodDesc{ 688 { 689 MethodName: "ListValidatingPublicKeys", 690 Handler: _RemoteSigner_ListValidatingPublicKeys_Handler, 691 }, 692 { 693 MethodName: "Sign", 694 Handler: _RemoteSigner_Sign_Handler, 695 }, 696 }, 697 Streams: []grpc.StreamDesc{}, 698 Metadata: "proto/validator/accounts/v2/keymanager.proto", 699 }